SuperClass

A

Alf P. Steinbach

* Leigh Johnston, on 26.05.2010 17:37:
No difference.

If I may add to that, as far as I know the "super/sub" terminology originated
with Smalltalk. At least it was used in Smalltalk. For C++ one usually talks
about "base/derived".

For example, it sounds a bit corny, or odd, at least, to talk about a
"superclass sub-object".

Instead one talks about a "baseclass sub-object".


Cheers,

- Alf
 
Ö

Öö Tiib

* Leigh Johnston, on 26.05.2010 17:37:



If I may add to that, as far as I know the "super/sub" terminology originated
with Smalltalk. At least it was used in Smalltalk. For C++ one usually talks
about "base/derived".

For example, it sounds a bit corny, or odd, at least, to talk about a
"superclass sub-object".

Instead one talks about a "baseclass sub-object".

Also it is worth to note that C++ is base-side-up. So "upcasting"
means casting towards base. :)
 
J

Juha Nieminen

Öö Tiib said:
Also it is worth to note that C++ is base-side-up. So "upcasting"
means casting towards base. :)

That's the reason I never use the terms "upcasting" and "downcasting".
It's impossible to know what they mean. Some people mean one thing and
other people mean the exact opposite. Talk about useless terms.
 
S

Saeed Amrollahi

* Leigh Johnston, on 26.05.2010 17:37:



If I may add to that, as far as I know the "super/sub" terminology originated
with Smalltalk. At least it was used in Smalltalk. For C++ one usually talks
about "base/derived".

For example, it sounds a bit corny, or odd, at least, to talk about a
"superclass sub-object".

Instead one talks about a "baseclass sub-object".

Cheers,

- Alf

And if I may add to yours a bit:
The superclass/subclass terminology is somehow confusing,
because a subclass object has usually more members
than superclass object.

Regards,
-- Saeed Amrollahi
 
R

RB

Thanks for the information. The reason I asked is that I sometimes
see SuperClass used on an MFC group. Which as far as I know
was only C++.
I am book learning C++ and all I had known was Bass Class and
Derived (or Inherited ) Class.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top