┌─────────────────────────────────────────┐ ┌───────────────────────────────────────────────────────────┐ ┌───────────────────────────────────────────────────────────┐ │Auto │ │Baum │ │Haus │ ├─────────────────────────────────────────┤ ├───────────────────────────────────────────────────────────┤ ├───────────────────────────────────────────────────────────┤ │- **int** x │ │- **int** x │ │- **int** x │ │- **int** y │ │- **int** y │ │- **int** y │ │- **color** c │ │- **int** breite │ │- **int** breite │ │-- │ │- **int** hoehe │ │- **int** hoehe │ │+ Auto(**int** x, **int** y, **color** c)│ │-- │ │-- │ │-- │ │+ Baum(**int** x, **int** y, **int** breite, **int** hoehe)│ │+ Haus(**int** x, **int** y, **int** breite, **int** hoehe)│ │+ **void** display() │ │-- │ │-- │ │+ **void** move() │ │+ **void** display() │ │+ **void** display() │ └─────────────────────────────────────────┘ └───────────────────────────────────────────────────────────┘ └───────────────────────────────────────────────────────────┘ | | ┌──────────────────┐ │Autofahrt │ ├──────────────────┤ │- Baum b1 │ │- Baum b2 │ │- Auto a │ │- Haus h1 │ │- Haus h2 │ │-- │ │+ **void** setup()│ │+ **void** draw() │ └──────────────────┘