T
Tony Johansson
Hello!
If you have the following inheritance A is the base class for the derived
class B and B is the base class for the derived class C. In this case will
the constructor of class C be executed first then the constructor of class B
and finally the constructor of class A.
Now to my question. When you have inheritance do you use the assignemt
operator anything?
This is just an example
A::A (const A& a ) : B(a) // here you use the copy constructor
A::A (const A& a ) : B() // here you use use the constructor
Many thanks!
//Tony
If you have the following inheritance A is the base class for the derived
class B and B is the base class for the derived class C. In this case will
the constructor of class C be executed first then the constructor of class B
and finally the constructor of class A.
Now to my question. When you have inheritance do you use the assignemt
operator anything?
This is just an example
A::A (const A& a ) : B(a) // here you use the copy constructor
A::A (const A& a ) : B() // here you use use the constructor
Many thanks!
//Tony