[comp.lang.pascal] Objects

slezakm@jacobs.CS.ORST.EDU (Mark R. Slezak) (06/08/89)

What with borland and microsoft fighting for the pc version of 
object oriented pascal, and apple doing same for the macs, I thought
I better ask what object oriented pascal was/is.

Does it work like the units in turbo 4 and 5? Or like modula-2 where
one `imports' routines from (I guess,) library files? Or am I way
off base and obejects come from some where else.

 Douglas Adams                      The Restraurant At The End Of The Universe
+-----------------------------------------------------------------------------+
: Trin Tragula - for that was his name - was a dreamer, a thinker, a          :
: speculative philosopher or, as his wife would have it, an idiot.            :
+-----------------------------------------------------------------------------+
 Mark R. Slezak            {tektronix,hp-pcd}!orstcs!jacobs.CS.ORST.EDU!slezakm

drc@claris.com (Dennis Cohen) (06/09/89)

Object Pascal was an extended Pascal developed jointly by Apple and Wirth
during a period that he was in the Bay Area.  What it provides are extensions
to the language which allow the programmer to define "classes" and "objects".
An object is analogous to a record, but in addition to the fields of the
record there are procedures and functions which are called "methods".  An
object is usually descended from another object (called its superclass) and
it inherits the instance variables and methods of the superclass, unless you
choose to override (which is the normal case).  It would be too difficult to
go much further with this in such a constrained forum; however, Kurt Schmucker's
book on Object Oriented Programming for the Macintosh spends a fair amount of
time discussing the nuances of the language -- the remainder of the book is
pertinent only for people interested in an outdated release of MacApp (which
is written in Object Pascal).

-- 
Dennis Cohen
Claris Corp.
------------
Disclaimer:  Any opinions expressed above are _MINE_!