Virtual Class methods.
Whats the difference between
[PHP]virtual void example() { cout << "example\n"; }[/PHP]
and [PHP]void example() { cout << "example\n"; }[/PHP]
What does [PHP]virtual[/PHP] do?
It makes it virtual, this way you can override it when the class inherits another.