http://en.wikipedia.org/wiki/Virtual_function
A pure virtual function or pure virtual method is a virtual function that is required to be implemented by a derived class, if that class is not abstract. Classes containing pure virtual methods are termed "abstract"; they cannot be instantiated directly, and a subclass of an abstract class can only be instantiated directly, if all inherited pure virtual methods have been implemented by that class or a parent class. Pure virtual methods typically have a declaration (signature) and no definition (implementation).
Nice one - it's also good to know that there really is no abstract keyword in C++, all you need is a pure virtual function in a class in order for it to be abstract. good description here as well:
ReplyDeletePure virtual function