LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

View Poll Results: Which terminology is best?
Super-class/Sub-class 1 50.00%
Base class/Derived class 1 50.00%
I don't use OO/I don't care 0 0%
Voters: 2. You may not vote on this poll

Reply
 
Search this Thread
Old 06-10-2011, 04:31 PM   #1
2ck
Member
 
Registered: Mar 2010
Location: /home/twock
Distribution: Debian
Posts: 70
Blog Entries: 9

Rep: Reputation: 21
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?

Last edited by 2ck; 06-10-2011 at 05:08 PM. Reason: changed title
 
Old 06-10-2011, 04:39 PM   #2
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 453Reputation: 453Reputation: 453Reputation: 453Reputation: 453
Quote:
Originally Posted by 2ck View Post
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.
 
Old 06-10-2011, 04:42 PM   #3
2ck
Member
 
Registered: Mar 2010
Location: /home/twock
Distribution: Debian
Posts: 70
Blog Entries: 9

Original Poster
Rep: Reputation: 21
Quote:
Originally Posted by Sergei Steshenko View Post
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.
 
Old 06-10-2011, 04:48 PM   #4
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 453Reputation: 453Reputation: 453Reputation: 453Reputation: 453
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.
 
Old 06-10-2011, 05:04 PM   #5
2ck
Member
 
Registered: Mar 2010
Location: /home/twock
Distribution: Debian
Posts: 70
Blog Entries: 9

Original Poster
Rep: Reputation: 21
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!

Last edited by 2ck; 06-10-2011 at 05:08 PM.
 
Old 07-20-2011, 12:49 AM   #6
ramtodatry
LQ Newbie
 
Registered: May 2011
Posts: 1

Rep: Reputation: 0
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)".
 
Old 07-20-2011, 10:17 AM   #7
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: FreeBSD, Debian, Mint, Puppy
Posts: 3,287

Rep: Reputation: 173Reputation: 173
"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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need details on the classes available in the /sys/class folder on RHEL and SuSE. PrasannaKumariMS Linux - General 1 05-03-2011 10:49 AM
C++ classes help allomeen Programming 4 12-26-2005 04:47 PM
Classes in VC++ Diederick Programming 2 11-30-2005 10:57 AM
c++ Abstract Base Classes exodist Programming 1 06-11-2005 06:05 PM
OOP (PHP) classes and extended classes ldp Programming 3 03-05-2005 11:45 AM


All times are GMT -5. The time now is 07:24 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration