...

/

Virtual Member Functions

Virtual Member Functions

In this lesson, we'll be learning about a very important concept of polymorphism, i.e., Virtual member.

Virtual means existing in appearance but not in reality.

Definition

A virtual function is a member function which is declared within the base class and is overridden by the derived class. When you refer to a derived class object ...