Skip to content

Commit 916210d

Browse files
authored
Correct Inheritance.md
Bracktes missing in an example.
1 parent 9d93e95 commit 916210d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tutorials/learnjavaonline.org/en/Inheritance.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,11 @@ The advantage of using inheritance is that you can write code that can apply to
6161
}
6262
6363
public static Shape getLargerShape(Shape s1, Shape s2) {
64-
if(s1.area() > s2.area())
64+
if(s1.area() > s2.area()) {
6565
return s1;
66-
else
66+
} else {
6767
return s2;
68+
}
6869
}
6970
}
7071

0 commit comments

Comments
 (0)