Saturday, May 7, 2011

OOD;4

OOD;4 Answers
1.











Basically this is a Computer. It has private elements, all of which are it's State. Which can't be changed. The Behaviors on the other hand are public and their parameters can be used openly, as well as "Return" arguments.

2. Accessors: Uses a function (almost always) to get a value, string, or some other data value.

3. Mutators: Mutators change the way a function works, by inserting arguments (paramaters) into the brackets of a function. This usually means it will change a variable within the program based on which one is assigned to the parameter.

No comments:

Post a Comment