About virtual functions
Someone gave me a big doubt about virtual functions. Can some one remind me which is the correct way about this:
Code:
class Base
{
...
virtual void display() = 0;
...
};
class Derived : public Base
{
...
virtual void display();
...
};
Must we put the keyword "virtual" before the function display in Derived, or must we not put it, or can we do what we want.
Elrond
A chess genius is a human being who focuses vast, little-understood mental gifts and labors on an ultimately trivial human enterprise.
-- George Steiner