Skip to content

Commit

Permalink
Update zoo.md
Browse files Browse the repository at this point in the history
  • Loading branch information
appenmaier authored Oct 5, 2023
1 parent c99b9cb commit 296dcb7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/exam-exercises/exam-exercises-java1/zoo.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ classDiagram
class Zoo {
-name String
-animals ArrayList~Animal~
+Zoo(name String, animals ArrayList~Animal~)
-animals List~Animal~
+Zoo(name String, animals List~Animal~)
+addAnimal(animal Animal) void
+getBiggestAnimal() Animal
+getFishesByColor(color String) ArrayList~Fish~
+getFishesByColor(color String) List~Fish~
}
class Animal {
Expand Down Expand Up @@ -68,4 +68,4 @@ Die Methode `void swim()` soll die Zeichenkette _schwimm, schwimm_ ausgeben.

- Die Methode `void addAnimal(animal: Animal)` soll dem Zoo das eingehende Tier hinzufügen
- Die Methode `Animal getBiggestAnimal()` soll das größte Tier des Zoos zurückgeben
- Die Methode `ArrayList<Fish> getFishesByColor(color: String)` soll alle Fische des Zoos zur eingehenden Farbe zurückgeben
- Die Methode `List<Fish> getFishesByColor(color: String)` soll alle Fische des Zoos zur eingehenden Farbe zurückgeben

0 comments on commit 296dcb7

Please sign in to comment.