Pure virtual functions are functions without body(=0;). They are generally used in abstract classes. The class which derives this abstract base class must implement this function. This provides flexibility to base class to call this function from any of its derived class.
What are pure virtual functions?
Pure virtual functions are functions without body(=0;). They are generally used in abstract classes. The class which derives this abstract base class must implement this function. This provides flexibility to base class to call this function from any of its derived class.