C++ Pure Virtual Function.What is a Pure Virtual Function?
- It is a virtual function that does not have any implementation part.
- It has only declaration part.
- It is declared by assigning the '0' in the declaration part.Example:
virtual void pureVirtual() = 0; // Pure Virtual Function
// There is no function body
- This function is also known as, pure specifier.
- The "= 0" notation indicates that the virtual function is a pure virtual function and it has no function body or definition.