How to create pure virtual function?
Ask by Anonymous User
Updated 14 Sep 2020
In inheritance if the base class contains a virtual function equating to zero, it is known also as do-nothing function & that base class is called as abstract base class as there are no instances or objects can be created by this base class. And this pure virtual can be filled with the codes in successiv derived classes accordin to the user requirements. A pure virtual function is a function that has the notation "= 0" in the declaration of that function. Why we would want a pure virtual function and what a pure virtual function looks like is explored in more detail below.