home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / object / 4665 < prev    next >
Encoding:
Text File  |  1992-12-27  |  2.2 KB  |  65 lines

  1. Newsgroups: comp.object
  2. Path: sparky!uunet!mole-end!mat
  3. From: mat@mole-end.matawan.nj.us
  4. Subject: Re: A little glossary for objects
  5. Message-ID: <1992Dec27.014406.26583@mole-end.matawan.nj.us>
  6. Summary: A value is a value is a value
  7. Organization: :
  8. References: <knight.724948496@cunews> <1992Dec23.151238.3419@Informatik.TU-Muenchen.DE>
  9. Date: Sun, 27 Dec 1992 01:44:06 GMT
  10. Lines: 53
  11.  
  12. In article <1992Dec23.151238.3419@Informatik.TU-Muenchen.DE>, rumpe@Informatik.TU-Muenchen.DE (Bernhard Rumpe) writes:
  13.  
  14. > Little glossary of object oriented software developement
  15. > ========================================================
  16. > ... This glossary aims at giving small, rather formal definitions of object
  17. > oriented notions. ...  So what do you think of the following definitions?
  18. > responsible:  Peter Sommerlad, Alois Stritzinger, Bernhard Rumpe
  19.  
  20.  
  21. > VALUE
  22. > A value is a value is a value.
  23.  
  24. Forgive me for smiling.  In my forthcoming C++ book, I found myself forced
  25. to write something like this:
  26.  
  27.     ``A value is harder to define, but we usually know it when
  28.  
  29. > INHERITANCE
  30.  
  31. > Inheritance is a binary, transitive, acyclic relation on classes.
  32. > A subclass inherits the class specification (signature and behaviour)
  33. > of a superclass and may extend it.
  34. > Comments:
  35. > - A class may have one or several direct superclasses. This is called
  36. >   single or multiple inheritance respectively.
  37. > ...
  38.  
  39. I don't see how you classify inheritance as a binary relation.  Could you
  40. be more specific?
  41.  
  42. > - In many languages a subclass inherits also the structure of a superclass
  43. >   and may extend it.
  44. > ...
  45.  
  46. In such languages, the use of `sub' and `super' is often confusing, because
  47. the subclass is represented by a superstructure on the superclass.  (Hence
  48. the classic advice to OO'rs moving to C++: ``Don't say `sub' and `super,' say
  49. `base' and `derived'.'')
  50.  
  51. > - The term "inheritance" is sometimes (mis-)used for code reuse violating
  52. >   the subfamily relation.
  53. > ...
  54.  
  55. I would say rather that the true inheritance of types is often confused
  56. with the mechanism by which inheritance is supported in the programming
  57. language, and the latter used in ways inimical to the former.
  58. -- 
  59.  (This man's opinions are his own.)
  60.  From mole-end                Mark Terribile
  61.  
  62.  mat@mole-end.matawan.nj.us, Somewhere in Matawan, NJ
  63.