Solved abstract class
-
Dear all,
Is the following design correct (method2 is defined already in the abstract class which calls the virtual method1 which will be defined in a derived concrete class)?
class AbsClass {
virtual void method1() = 0;
void method2();
};
void AbsClass::method2() {
......
method1();
......
}
Weichao -
@Weichao-Wang said in abstract class:
Is the following design correct
Yes, it is.
You can very easy check that... -
@jsulm
Thank you! I'm going to use this mothode. The code would be a little extensive and I want to avoid the situation that it turns out to be not workable.