home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / cplus / 11222 < prev    next >
Encoding:
Internet Message Format  |  1992-07-21  |  1.8 KB

  1. Xref: sparky comp.lang.c++:11222 comp.std.c++:892
  2. Newsgroups: comp.lang.c++,comp.std.c++
  3. Path: sparky!uunet!mcsun!Germany.EU.net!news.netmbx.de!netmbx!jrobie
  4. From: jrobie@netmbx.netmbx.de (Jonathan Robie)
  5. Subject: Re: run-time type checking (was: Re: Covariant Types in Derived Classes)
  6. Organization: netmbx, Berlin, Germany
  7. Date: Tue, 21 Jul 1992 13:53:36 GMT
  8. Message-ID: <78A50WF@netmbx.netmbx.de>
  9. References: <1992Jul20.143900.23087@merlin.hgc.edu> <1992Jul20.215058.1216@cadsun.corp.mot.com>
  10. Lines: 39
  11.  
  12. shang@corp.mot.com (David (Lujun) Shang) writes:
  13.  
  14. >In article <1992Jul20.143900.23087@merlin.hgc.edu> jcm@hgc.edu (James McKim)  
  15. >writes:
  16. >> If I store a bunch of animals on the disk, I'm probably doing so
  17. >> because I don't expect that I will need to access features specific
  18. >> to a dog.
  19.  
  20. >I belive many OO database users are much more critical than you.
  21. Absolutely!  If I store an object, then I expect that I can retrieve
  22. that same object and have it act just exactly like the object that I
  23. stored--it should have the same state and behavior.
  24.  
  25. After all, if I use polymorphy, then I am using the base class as an
  26. interface to derived classes which may not even exist at the time I
  27. design my interface.
  28.  
  29. Take the above statement and try to apply it to a CAD system:  If I
  30. draw a bunch of shapes on the screen, I'm probably doing so because
  31. I don't expect that I will need to draw things specific to a circle.
  32. Is this really the way we want to approach polymorphy?
  33.  
  34.  
  35. Jonathan
  36.  
  37. ===========================================================================
  38.  
  39. Jonathan Robie        jrobie@netmbx.UUCP
  40. Arnold-Zweig-Str. 44    jrobie@netmbx.in-berlin.de
  41. O-1100 Berlin        
  42. Deutschland        Phone:  +37 (2) 472 04 19  (Home, East Berlin)
  43.                 +49 (30) 342 30 66 (Work, West Berlin)
  44.  
  45.  
  46. -- 
  47. Jonathan
  48.  
  49. ===========================================================================
  50.  
  51.