News

4. A Virtual function in base class might not be used. 5. If a virtual function is defined in the base class, theres is no necessity of redifining it in the derived class. eg: Suppse we comment out ...
Suppose we make the display () function of the BaseClass as virtual, then the displa () function of the DerivedClass will run and not of the BaseClass when we call the pointer whcih points to the ...