Browse Source

fix: fix getCalories method return String -> int (#2113)

pull/2114/head
zanninso 10 months ago committed by GitHub
parent
commit
ce54ed5d2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      subjects/java/piscine/Decorator/README.md

10
subjects/java/piscine/Decorator/README.md

@ -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
}

Loading…
Cancel
Save