11 Jul
2010
11 Jul
'10
9:09 p.m.
On 7/11/2010 2:28 PM, Marshall Clow wrote:
If you declare "fun" as virtual in the base class, it needs to be virtual in the derived class, too.
No, it absolutely does not. It will be virtual, whether you put the keyword there or not.
Many compilers will warn you about this.
That's why it's a warning, not an error.