home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / pascal / 8030 < prev    next >
Encoding:
Internet Message Format  |  1993-01-11  |  838 b 

  1. Path: sparky!uunet!dtix!oasys!roth
  2. From: roth@oasys.dt.navy.mil (Pete Roth)
  3. Newsgroups: comp.lang.pascal
  4. Subject: INHERITED: what are the advantages
  5. Message-ID: <29505@oasys.dt.navy.mil>
  6. Date: 11 Jan 93 13:30:13 GMT
  7. Reply-To: roth@oasys.dt.navy.mil (Pete Roth)
  8. Organization: The David Taylor Model Basin
  9. Lines: 21
  10.  
  11. There's not much in the BP7 docs about using the reserved word
  12. INHERITED, although it is used in place of all previously fully
  13. qualified method invocations. For example, in place of
  14.  
  15. CONSTRUCTOR TDerived.Init ;
  16.     BEGIN
  17.         TBase.Init
  18.         ...
  19.  
  20. the new "example" is
  21.  
  22. CONSTRUCTOR TDerived.Init ;
  23.     BEGIN
  24.         INHERITED Init
  25.         ...
  26.  
  27. How is this new model an advantage?
  28. - - - - - - - - - - - - - - - - - - - - - - - - - -
  29. Grace & peace
  30. Pete                         roth@oasys.dt.navy.mil
  31. "Easy for me, difficult for you." - Senor Wences.
  32.