Hi,
I have a question related to pointers to base and derived classes. I have the following base and derived class:
class A
{
protected:
double a,x;
public:
void set_ax();
virtual void mult_ax();
};
class B:virtual public A
{
protected:
double b;
public:
void set_b();
void mult_ax();
};
class C:virtual public A
{
protected:
public:
};
class D
{
protected:
double d;
public:
void set_d();
};
class E:public B, public C, public D
{
protected:
public:
};
I am trying to access the base class objects and dervived class objects using pointers. By declaring a base class pointer to class A i am able to point to objects created from B and C. However I am not sure how to access the objects created from E which has two different base class. How would I go about doing this. Any help is appreciated.
Thank you