home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / object / 4697 < prev    next >
Encoding:
Internet Message Format  |  1993-01-03  |  1.3 KB

  1. Path: sparky!uunet!gatech!destroyer!gumby!yale!mintaka.lcs.mit.edu!ai-lab!life.ai.mit.edu!tmb
  2. From: tmb@arolla.idiap.ch (Thomas M. Breuel)
  3. Newsgroups: comp.object
  4. Subject: Re: A Pre-Release FAQ
  5. Date: 3 Jan 93 23:09:07
  6. Organization: IDIAP (Institut Dalle Molle d'Intelligence Artificielle
  7.     Perceptive)
  8. Lines: 21
  9. Message-ID: <TMB.93Jan3230907@arolla.idiap.ch>
  10. References: <1992Dec29.042355.10967@netcom.com>
  11. Reply-To: tmb@idiap.ch
  12. NNTP-Posting-Host: arolla.idiap.ch
  13. In-reply-to: Bob Hathaway's message of Tue, 29 Dec 1992 04:23:55 GMT
  14.  
  15. In article <1992Dec29.042355.10967@netcom.com> Bob Hathaway <objsys@netcom.com> writes:
  16.    What Is an Object?
  17.  
  18.    Simply put, an object is a variable.  In classical object-oriented programming,
  19.    this variable has a type (called a class) defining its structure and
  20.    operations (called methods) which may be performed on the object.  Classes
  21.    also define inheritance for objects.
  22.  
  23. Bad start. Variables are names for objects, they are not objects
  24. themselves. Furthermore, in "classical OO programming", variables
  25. didn't have types, only objects did.
  26.  
  27. A better definition might be:
  28.  
  29.     An object is a data structure with a set of operations defined
  30.     on it. An object-oriented language provides special language
  31.     constructs for supporting or even enforcing such an
  32.     association between data structures and operations on them.
  33.  
  34.                     Thomas.
  35.  
  36.