Difference between a virtual function and a pure virtual function [duplicate]
Possible Duplicate: C++ Virtual/Pure Virtual Explained What is the difference between a pure virtual function and a virtual function? I know "Pure Virtual Function is a Virtual function with no body", but what does this mean and what is actually done by the line below: virtual void virtualfunctioname() = 0 sbi A virtual function makes its class a polymorphic base class . Derived classes can override virtual functions. Virtual functions called through base class pointers/references will be resolved at run-time. That is, the dynamic type of the object is used instead of its static type : Derived