I read in my book:
An abstract class is a class that is designed specifically for use as a base class. An abstract class contains at least one pure virtual function. You declare a pure virtual function using a pure qualifier (= 0) in the declaration of a virtual member function in the class declaration.
Is it mandatory for an abstract class to have a virtual function? Why?
What is the difference between pure virtual function and virtual function and what is their need?
source
share