Methods vs. Functions (Re: [Python-Dev] A house upon the sand)

Fredrik Lundh
Tue, 28 Nov 2000 02:11:48 +0100

Greg Ewing wrote:
> > he's ignoring the case:
> >
> >    else if (f can be implemented via C's
> >             public interface, but may have
> >             to be overridden by a subclass
> >             to C)
> Isn't that the same as "f needs to be virtual"?

in Python, sure.

in C++, it depends.  thanks to function overloading, you can have
polymorphism without having to make everything virtual...