home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.object
- Path: sparky!uunet!mole-end!mat
- From: mat@mole-end.matawan.nj.us
- Subject: Re: A little glossary for objects
- Message-ID: <1992Dec27.014406.26583@mole-end.matawan.nj.us>
- Summary: A value is a value is a value
- Organization: :
- References: <knight.724948496@cunews> <1992Dec23.151238.3419@Informatik.TU-Muenchen.DE>
- Date: Sun, 27 Dec 1992 01:44:06 GMT
- Lines: 53
-
- In article <1992Dec23.151238.3419@Informatik.TU-Muenchen.DE>, rumpe@Informatik.TU-Muenchen.DE (Bernhard Rumpe) writes:
-
- > Little glossary of object oriented software developement
- > ========================================================
- > ... This glossary aims at giving small, rather formal definitions of object
- > oriented notions. ... So what do you think of the following definitions?
- > responsible: Peter Sommerlad, Alois Stritzinger, Bernhard Rumpe
-
-
- > VALUE
- >
- > A value is a value is a value.
-
- Forgive me for smiling. In my forthcoming C++ book, I found myself forced
- to write something like this:
-
- ``A value is harder to define, but we usually know it when
-
- > INHERITANCE
-
- > Inheritance is a binary, transitive, acyclic relation on classes.
- > A subclass inherits the class specification (signature and behaviour)
- > of a superclass and may extend it.
- >
- > Comments:
- > - A class may have one or several direct superclasses. This is called
- > single or multiple inheritance respectively.
- > ...
-
- I don't see how you classify inheritance as a binary relation. Could you
- be more specific?
-
- > - In many languages a subclass inherits also the structure of a superclass
- > and may extend it.
- > ...
-
- In such languages, the use of `sub' and `super' is often confusing, because
- the subclass is represented by a superstructure on the superclass. (Hence
- the classic advice to OO'rs moving to C++: ``Don't say `sub' and `super,' say
- `base' and `derived'.'')
-
- > - The term "inheritance" is sometimes (mis-)used for code reuse violating
- > the subfamily relation.
- > ...
-
- I would say rather that the true inheritance of types is often confused
- with the mechanism by which inheritance is supported in the programming
- language, and the latter used in ways inimical to the former.
- --
- (This man's opinions are his own.)
- From mole-end Mark Terribile
-
- mat@mole-end.matawan.nj.us, Somewhere in Matawan, NJ
-