Creating subclassess (newbie)
peter at engcorp.com
Mon Jun 21 16:53:45 CEST 2004
> I have a subclass I want to create- my intuition told me
> that it would be done like this:
> class MainClass:
> class SubClass:
> subclassinstance = SubClass()
> mainclassinstance = MainClass()
Have you followed through the tutorial in the documentation?
The section on classes covers inheritance in a basic way.
More information about the Python-list