simlpe inheritance question
Hi,
I'm new to cpp, I have good knowledge in java and actionscript3.
I want a base class with one function:
initConfig - it will initialize some variables.
This function will get called from the constructor of the base class.
I want a derived class that will override this function, with it's own implementation, but still call the base's class implementation too.
so it should look like this:
* An object is created from the derived class.
* the constructor of the base class is called.
* in the base's class constructor there's a call to initConfig.
* the derived class's implementation of initConfig is executed and than the base's class implementation of initConfig.
I tried many things, but when calling a function from a base class it's calling the base's class's implementation ONLY, without calling the derived implementation first...
how do I do that?
Thanks
Gil