What is a pure virtual method (function)? What is the syntax for a pure virtual method? What is an abstract class?
Pure virtual function is a function that declared with "=0;" specifier. Pure virtual function does not have body and must be overridden in the derived class. The syntax for pure virtual function is virtual void foo() = 0; Abstract class is a class with at least one pure virtual function.