osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Python Inheritance Terminology


I'm doing some writing for an upcoming course on OOP using Python.  

I have been doing OOP programming for many years in many different languages, and I want make sure that I'm using the appropriate terminology in Python.  I'd like to know if there are "official" or even standard terms that are used to describe a class that is inherited from, and the class that is doing the inheriting.  From my reading (especially the PSF docs.python.org <http://docs.python.org/>), it looks like the terms would be "base class" and "subclass".

However, in books about Python and other languages, I have also seen the terms:

base class & derived class
parent class & child class
superclass & subclass

So, are base class & subclass the proper terms?

Thanks,

Irv