a virtual function permits derived classes to


A virtual function permits derived classes to replace the implementation given by the base class. The compiler makes sure the replacement is always known as whenever the object in question is actually of the derived class, even if the object is accessed by a base pointer rather than a derived pointer. This permits algorithms in the base class to be replaced in the derived class, even if users don't know about the derived class.                

 

 

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: a virtual function permits derived classes to
Reference No:- TGS0263495

Expected delivery within 24 Hours