< Previous | Contents | Next >

Calling and Overriding Base Class Member Functions

Youre not stuck with every base class member function you inherit in a derived class as is. You have options that allow you to customize how those inherited member functions work in your derived class. You can override them by giving

Calling and Overriding Base Class Member Functions 341


them new definitions in your derived class. You can also explicitly call a base class member function from any member function of your derived class.

 

Introducing the Overriding Boss ProgramCalling Base Class ConstructorsDeclaring Virtual Base Class Member FunctionsOverriding Virtual Base Class Member FunctionsCalling Base Class Member Functions