Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!wuarchive!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!tut.cis.ohio-state.edu!ucbvax!ucdavis!csusac!unify!Unify.com!grp From: grp@Unify.com (Greg Pasquariello) Newsgroups: comp.lang.forth Subject: Re: Object Oriented Programming ? Message-ID: <1991May23.085940@Unify.com> Date: 23 May 91 15:59:40 GMT References: <1991May22.134354.11444@mlb.semi.harris.com> Sender: news@Unify.Com (news admin) Reply-To: grp@Unify.com (Greg Pasquariello) Organization: Unify Corporation, Sacramento, CA, USA Lines: 40 In article <1991May22.134354.11444@mlb.semi.harris.com>, bie@solman.mlb.semi.harris.com (Ben Eaton) writes: > > > I know I am going to get flamed for asking this but I am going to > ask it any way. > > QUESTION - What is "Object Oriented Programming"? > > Maybe I just fell off the turnip truck (that mite explain the > bruises). I keep running across this term but I have yet to see an > explanation or a definition of it. > > If someone out there could dispel my ignorance (well at least some > of it) I would be very grateful. > > Thank you, Object oriented anything involves working with objects - pieces of code and state that are normally inextricably tied together. Access to the state of an object is done via the code (called methods). Most OO systems allow you to incrementally develop new object types (called classes) via a subclassing mechanism. Subclassing lets you take an object that allows specific operations and specialize it, benefiting from the code and state of the existing class. OO provides a high level of data abstraction and encapsulation. Because of this, it allows you to view a problem in terms that are closer to your real world exprience, which IMO is the biggest single benefit of the OO paradigm. After all, anything I can do with an OO language, I can do with a procedural language as well. OO Languages take the OO paradigm and make it easy to implement your model in code. > > The Bruised Turnip (A.K.A. Ben Eaton) --- Greg Pasquariello grp@unify.com Unify Corporation Be good and never poison people