Do all members of the base class need to be declared virtual?
Thanks
Jack
Printable View
Do all members of the base class need to be declared virtual?
Thanks
Jack
No.
My memory wears out, I got it, polymorphism.... lazy brain of mine
members of a (base) class only need to be virtual if you plan to use a base pointer/reference and expect the call to end up in the most derived implementation rather than the base pointer implementation.
Thanks for sharing a great post