...

/

Pure Virtual Member Functions

Pure Virtual Member Functions

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

Abstract Class

We can only make derived class’s objects to access their functions, and we will never want to instantiate objects of a base class, we call it an abstract class. Such a class exists only to act as a parent of derived classes that will be used to instantiate objects.

How to Write a Pure Virtual Function?

It may also provide an ...