Fix du cas exceptionnel du visiteur de 14 ans qui devait être traité comme un enfant et non comme un adulte
This commit is contained in:
parent
2294ce5351
commit
a93f449d76
1 changed files with 1 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ public class Visitor {
|
|||
private FeeCalculationStrategy feeCalculationStrategy;
|
||||
|
||||
public Visitor (int age) {
|
||||
if (age < 14) {
|
||||
if (age <= 14) {
|
||||
feeCalculationStrategy = new FeeCalculationStartegyForChildren();
|
||||
} else {
|
||||
feeCalculationStrategy = new FeeCalculationStrategyForAdults();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue