hello,
i'm new to cpp &
I wanna know that in C++
if there is multiple inheritance is done
suppose,
Class A & Class B public,protected member
is inherted in Class C
like,
class A
{
protected:
int no1;
public:
void get_a(void)
{
cout<<"Class A";
}
};
class B
{
protected:
int no2;
public:
void get_b(void)
{
cout<<"Class B";
}
};
class c : public A,b
{
private:
int no;
};
so, how compiler will distinguish that get_a(),no1 is come from class A & get_b(),no2 is come from class B
i have surf lot of web site but i can't get any idea pls help to solve this question.
thanx in advance