Object Oriented Programming2080.15 marksVirtual functions
Differentiate between virtual function and pure virtual function with an example.
Differentiate between virtual function and pure virtual function with an example. [5]
A virtual function is a member function declared in a base class using the virtual keyword that can be overridden in derived classes. It has a definition (body) in the base class, so objects of the base class can still be instantiated and the function can be called directly. Key characteristics: ...