2080.1 7

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: ...

Up nextWhat is friend function? Write a program to add any two private numbers of two different c