Skip to content

Commit

Permalink
fix: fix getCalories method return String -> int (#2113)
Browse files Browse the repository at this point in the history
  • Loading branch information
zanninso authored Aug 2, 2023
1 parent 7a7eddc commit ce54ed5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions subjects/java/piscine/Decorator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,30 @@ Now let's implement the Decorator Design Pattern
classDiagram
class Raclette {
<<interface>>
+getCalories()* String
+getCalories()* int
+getIngredients()* String
}
class BaseRaclette {
+getCalories() String
+getCalories() int
+getIngredients() String
}
class RacletteDecorator {
<<abstract>>
-Raclette raclette
+RacletteDecorator(Raclette raclette)
+getCalories() String
+getCalories() int
+getIngredients() String
}
class WithPickles {
-Raclette raclette
+RacletteDecorator(Raclette raclette)
+getCalories() String
+getCalories() int
+getIngredients() String
}
class WithColdMeats {
-Raclette decoratedRaclette
+RacletteDecorator(Raclette raclette)
+getCalories() String
+getCalories() int
+getIngredients() String
}
Expand Down

0 comments on commit ce54ed5

Please sign in to comment.