I have a parent class with many methods in it that are all called by a single top-level method.
Conceptually the parent class looks like this:
class ParentClass
{
void TopMethod(){ Lots of code and calls Methods1-N defined below}
void Method1(){}
void Method2(){}
...
void MethodN(){}
}
I have many other classes that I want to be just minor variations on this base class. So I declare them as inheriting from ParentClass. Say all I need to do is change the definition of Method1 in the Child Classes. But how do I tell the child class to use everything else from the ParentClass, just with the new definition for Method1. In particular I don’t want the duplicate code of overriding TopMethod in the child class just so I can make it use the redefined Method1 in the child class instead of the Method1 in the ParentClass.