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?
[PHP]virtual void example() { cout << "example\n"; }[/PHP]
and [PHP]void example() { cout << "example\n"; }[/PHP]
What does [PHP]virtual[/PHP] do?