<ho******@gmail.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
Jim Langston ??:
><ho******@gmail.comwrote in message
news:11**********************@m73g2000cwd.googleg roups.com...
is that true for the statement?
thanks.
No. If a method has something that will work for most, or all, cases it
doesn't need to be pure virtual, just virtual.
in this case...why put a virtual then? since all class will have the
same implementation...just inheri it
Unless you want the method to be unmutable, it is generally a good idea to
make it virtual anyway, just in case you find later that you want to change
something in a derived class. It is better, IMO, to initially make it
virtual than to have to modify the base class later because you realize that
with some derived class you need to override a base method you thought you
wouldn't have to when you designed the base class.