Re: C# vs. C++ Calling the overridden base class members from derived classes.
From: Hattuari (susudata_at_setidava.kushan.aa)
Date: 03/16/04
- Next message: Pete Vidler: "Re: C# vs. C++ Calling the overridden base class members from derived classes."
- Previous message: MCheu: "Re: Direct X"
- In reply to: Brian Riis: "Re: C# vs. C++ Calling the overridden base class members from derived classes."
- Next in thread: Unforgiven: "Re: C# vs. C++ Calling the overridden base class members from derived classes."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 16 Mar 2004 14:17:32 -0500
Brian Riis wrote:
> Hattuari wrote:
>
>> Not so according to Stroustrup. But more significantly, the term
>> 'method' is from computer science, and is used to describe member
>> function of a
>> class. Especially member functions invoked as part of the class's
>> interface.
>
> Agree. However C++ has a long history of giving previous OO terms new
> names, and I would say that it is generally to be more specific about
> what it is/does, or to avoid clashing with different terms. So in C++ a
> superclass is a base class, a subclass is a derived class, a method is a
> member function, and inheritance is called derivation. Jeff Alger had an
> interesting line in his book, "C++ for Real Programmers": "If you object
> to new names for old ideas, used in the interest of clarity, you're
> programming in the wrong language, buddy." The quote is his, but I
> whole-heartedly agree.
>
I have no complaint with the introduction of terms that add clarity. And I
did not argue that the term baseclass is inappropriate. I used the terms
superclass, subclass, and method as I did because I am more confident of
their meaning, and knew that the language I was using would communicate the
gist of my intent to other educated professionals. I also wanted to avoid
language specific terms because I was addressing abstract design features
common to languages where such terms as baseclass and derived class are not
used.
As for the use of the term 'method'. Stroustrup uses it in the restricted
sense of a virtual member function.
-- .
- Next message: Pete Vidler: "Re: C# vs. C++ Calling the overridden base class members from derived classes."
- Previous message: MCheu: "Re: Direct X"
- In reply to: Brian Riis: "Re: C# vs. C++ Calling the overridden base class members from derived classes."
- Next in thread: Unforgiven: "Re: C# vs. C++ Calling the overridden base class members from derived classes."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|