R
RB
What is the difference (if any) between a Base class
and a Super class?
and a Super class?
No difference.
* 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".
Öö Tiib said:Also it is worth to note that C++ is base-side-up. So "upcasting"
means casting towards base.![]()
* 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
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.