un
This commit is contained in:
parent
2aec972fe8
commit
37c1dc8910
4
index.md
4
index.md
@ -26,9 +26,7 @@ This course not only focuses on tools, but on how these tools can become a part
|
|||||||
|
|
||||||
##Syllabus
|
##Syllabus
|
||||||
|
|
||||||
[Objects](/)
|
[Objects](objects.html)
|
||||||
|
|
||||||
<!-- [Objects](objects.html) -->
|
|
||||||
|
|
||||||
[Environment](/)
|
[Environment](/)
|
||||||
|
|
||||||
|
|||||||
37
objects.md
37
objects.md
@ -23,40 +23,3 @@ Using the _OO-NotePad_ sheet, observe four (4) objects in your surrounding and f
|
|||||||
+ Dynamic -- an attribute that changes aspect over time
|
+ Dynamic -- an attribute that changes aspect over time
|
||||||
|
|
||||||
|
|
||||||
Questions:
|
|
||||||
|
|
||||||
1. Is there an atribute that is common to all (or some) of your objects?
|
|
||||||
2. Do you see any familiarity between your objects?
|
|
||||||
3. 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 **U**nified **M**odeling **L**anguage (UML)
|
|
||||||
|
|
||||||
- [online UML editor](http://www.gliffy.com/uses/uml-software/) (note: please take screen shots of your UML design)
|
|
||||||
|
|
||||||
Questions:
|
|
||||||
|
|
||||||
1. Do you think the UML translates well your observation?
|
|
||||||
2. Do you understand the difference between UML's attribute and method?
|
|
||||||
3. 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:
|
|
||||||
|
|
||||||
1. How does your class relate to your UML diagram?
|
|
||||||
2. How does your class relate to your paper observation?
|
|
||||||
3. Was it easy to translate your UML diagram into code? What was ambiguous? What was not?
|
|
||||||
3. Is your class readable?
|
|
||||||
|
|
||||||
### Object Oriented Programming II: Polymorphism and Inheritance
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user