|
|
Objects are often discussed in terms of having a "state" that describes their exact conditions in a given time, based upon the values of their properties. The particular values of the properties affect the object's behavior. For instance, one can say that the exact behavior of an object's getColor() method is different if the "color" property of the given object is set to "blue" instead of "red" because getColor() returns a different value in the two situations.
http://exciton.cs.rice.edu/JavaResources/DesignPat
created by syam1224 on 2008-05-11 21:25:04
|
|
|
|
|