Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!zaphod.mps.ohio-state.edu!usc!snorkelwacker.mit.edu!bu.edu!purdue!mentor.cc.purdue.edu!j.cc.purdue.edu!brazil.psych.purdue.edu!zhou From: zhou@brazil.psych.purdue.edu (Albert Zhou) Newsgroups: comp.lang.pascal Subject: Re: OOP Message-ID: <11676@j.cc.purdue.edu> Date: 12 Jan 91 13:46:02 GMT References: <25462@adm.brl.mil> Sender: news@j.cc.purdue.edu Reply-To: zhou@brazil.psych.purdue.edu (Albert Zhou) Organization: Purdue University Lines: 47 I have a very practical description of OOP. An object is actually a module with declarations (descriptors, as it is called) and subroutines (methods, as it is called). Any non-modular language, after implementing object data type, can achieve modularity. A module: Module anything; const a = 3; b = 4; var c : real; proc null; endproc; proc null2; endproc; endmodule. An object in Turbo Pascal: type anything = object a : integer; b : integer; c : real; procedure null; procedure null2; end; procedure anything.null; begin end; procedure anything.null2; begin end;