2015-03-02 08:56:44 +01:00
|
|
|
---
|
|
|
|
|
layout: default
|
|
|
|
|
title: Objects
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Objects
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
[Linnæan Taxonomy](https://en.wikipedia.org/wiki/Linnaean_taxonomy)
|
|
|
|
|
|
|
|
|
|
### Object Oriented Programming I: Class and Objects
|
|
|
|
|
|
|
|
|
|
#### A. [OO-NotePad](img/OO-NotePad.pdf)
|
|
|
|
|
|
|
|
|
|
Using the _OO-NotePad_ sheet, observe four (4) objects in your surrounding and formally describe them usign the following descriptors:
|
|
|
|
|
|
|
|
|
|
1. Name of the object
|
|
|
|
|
2. Visual diagram / representation
|
|
|
|
|
3. List of Attributes
|
|
|
|
|
+ Static -- an attribute that does not change (much) over time
|
|
|
|
|
+ Dynamic -- an attribute that changes aspect over time
|
|
|
|
|
|
2015-03-02 11:29:11 +01:00
|
|
|
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?
|
|
|
|
|
|
2015-03-02 13:07:29 +01:00
|
|
|
#### 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)
|
|
|
|
|
|
2015-03-02 11:29:11 +01:00
|
|
|
|
2015-03-02 08:56:44 +01:00
|
|
|
|