By gst
via debasishg.blogspot.com
Published: Sep 10 2007 / 14:06
In the classical object oriented model, an object encapsulates local state (instance variables) and contains a pointer to the shared procedures. These procedures are the methods, which operate on the encapsulated state, that forms the environment of the object. Each method can declare local variables as well as look up for additional state information from the shared environment based on lexical scoping rules. So we have the object as the combination of the environment and the set of methods that operate on the environment. Class based languages like Java and C++ provide another abstraction - the class, which instantiates objects by initializing the environment and setting up appropriate pointers to the shared procedures.
Add your comment
Voters For This Link (19)
-
gst -
debasishg -
rick -
zis -
johndehope3 -
puredanger -
greggraham -
alexjc -
madlep -
kangax -
rickyclarkson -
domreiroam -
harnas -
javanperl -
TiSHuS -
michael@novemberain.com -
michaelklishin.myopenid.com -
omouse -
yardena