What are Pure Virtual Functions?
Pure Virtual functions are Virtual functions with no implementation code in them. They are declared by setting the Virtual function equals 0. Pure Virtual functions serve the purpose of declaring as class as Abstract- a class that can not have an object of itself.
Code Example:
class Vehicle
{
public:
Vehicle(){}
Virtual void GetRegistration() = 0;
};
C++ FAQ Home