Objects

Object Oriented Programming I: Class and Objects
A. OO-NotePad
Using the OO-NotePad sheet, observe four (4) objects in your surrounding and formally describe them usign the following descriptors:
- Name of the object
- Visual diagram / representation
- List of Attributes
- Static – an attribute that does not change (much) over time
- Dynamic – an attribute that changes aspect over time
Questions:
- Is there an atribute that is common to all (or some) of your objects?
- Do you see any familiarity between your objects?
- Is there any hierarchical realtionship(s) that could be devise between your objects?
B. OO Modeling
Following your OO obervations, formalise your (paper) descriptions using the Unified Modeling Language (UML)
- online UML editor (note: please take screen shots of your UML design)
Questions:
- Do you think the UML translates well your observation?
- Do you understand the difference between UML’s attribute and method?
- Is your UML diagram readable?
C. OO Programming
Now that you have created a simple UML diagram of your objects, translate this diagram into code using a class.
class Name {
...
};
Questions:
- How does your class relate to your UML diagram?
- How does your class relate to your paper observation?
- Was it easy to translate your UML diagram into code? What was ambiguous? What was not?
- Is your class readable?