capehart@nevada.edu (Anne Racel) (01/11/91)
Can someone out there give me a good definition IN PLAIN ENGLISH of
what exactly, Object Oriented Programming is? I've asked even those
who use it around here and they can't explain it.
=============================================================
Anne Racel Internet: capehart@nevada.edu
University of Nevada, Compuserve: 72105,1105
Las Vegas Bitnet: capehart@unsvax.bitnet
"I'm very certain, Oz, that you gave me the best brains in the world
for I can think with them day and night, when all over brains are
fast asleep."
Scarecrow in "Dorothy and the Wizard in Oz"zhou@brazil.psych.purdue.edu (Albert Zhou) (01/12/91)
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;