can i implement virtual functions in python ?

Gerhard Häring gh at ghaering.de
Tue Sep 30 11:22:01 EDT 2003


Prabu wrote:
> Hi,
> 
> I'm new to python, so excuse me if i'm asking something dumb. 
> Does python provide a mechanism to implement virtual functions? [...]

What do you mean with "virtual function"?

If you mean virtual methods in the C++ sense, all methods are "virtual" 
in Python.

-- Gerhard





More information about the Python-list mailing list