┌──────────────────────────────────────────────────────────────────────────────────┐ │Wagon │ ├──────────────────────────────────────────────────────────────────────────────────┤ │- **int** xPos │ │- **int** yPos │ │- **int** breite │ │- **int** höhe │ │- **color** farbe │ │--- │ │+ Wagon(**int** xPos, **int** yPos, **int** breite, **int** höhe, **color** farbe)│ │--- │ │+ **void** zeichnen() │ │+ **void** bewegen(**int** geschwindigkeit) │ └──────────────────────────────────────────────────────────────────────────────────┘