V
Vasileios
Hello everyone,
I have a very simple question.
Imagine that I have a CBase class with a nondefault constructor that
takes one argument CBase::CBase(int A)
And a derived class CDerived that takes two arguments.
If I am not mistaken the definition of the constructor of CDerived
should be:
CDerived::CDerived(int A, int B) : CBase(A){ }
My question is, what should the declaration of CDerived should look like
(in the .h file)?
Thank you
Vasileios
I have a very simple question.
Imagine that I have a CBase class with a nondefault constructor that
takes one argument CBase::CBase(int A)
And a derived class CDerived that takes two arguments.
If I am not mistaken the definition of the constructor of CDerived
should be:
CDerived::CDerived(int A, int B) : CBase(A){ }
My question is, what should the declaration of CDerived should look like
(in the .h file)?
Thank you
Vasileios