A pure virtual function is a virtual function with the expression = 0 added to the declaration. This can be explained with the help of following example.
class base
{
public:
virtual void func() = 0;
};
The function fun() is known as pure virtual function

0 comments:
Post a Comment