It makes it virtual, this way you can override it when the class inherits another.
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.
Hell_Demon (08-05-2010)