LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Class inheritance terminology: super-classes or base classes? (https://www.linuxquestions.org/questions/programming-9/class-inheritance-terminology-super-classes-or-base-classes-885660/)

2ck 06-10-2011 04:31 PM

Class inheritance terminology: super-classes or base classes?
 
I started reading through The Java Tutorial by Sharon Zakhour for uni this fall, and I wondered: which terminology do you prefer?

Sergei Steshenko 06-10-2011 04:39 PM

Quote:

Originally Posted by 2ck (Post 4382271)
I started reading through The Java Tutorial by Sharon Zakhour for uni this fall, and I wondered: which terminology do you prefer?

If/when they adopt a Java standard, the question will become irrelevant.

For languages with multiple inheritance "base classes" makes more sense.

2ck 06-10-2011 04:42 PM

Quote:

Originally Posted by Sergei Steshenko (Post 4382279)
If/when they adopt a Java standard, the question will become irrelevant.

Good point. I want the question to be open for class terminology generally, though.

Sergei Steshenko 06-10-2011 04:48 PM

By the way,"subclass" is a bad idea - because some languages (e.g. C++) allow classes to be declared/defined within other classes. So intuitively "subclass" can also mean these inner classes.

2ck 06-10-2011 05:04 PM

Do you mean that syntactically, one class definition/declaration is inside of another? Technically that's composition.

Apparently I can't change my title.

Edit: did it!

ramtodatry 07-20-2011 12:49 AM

Base & Derived Classes
 
We have been using C++ since 1993, and have always used "base class(es)" and "derived class(es)". We find this to be more intuitive than "super class(es) and sub-class(es)". Along with "inheritance" the concept of base classes & derived classes makes more sense. This meaning does not seem to get conveyed when one uses "super class(es) and sub-class(es)".

bigearsbilly 07-20-2011 10:17 AM

"super class" for base is just wrong, it implies a higher order or improved class.
A super class seems a better name for a derivative.

being from england I am very class conscious.
it should be: working, middle, upper.

actually it is quite appropriate when you think about it.


All times are GMT -5. The time now is 12:11 AM.