Skip to content

Commit 4e60053

Browse files
part 4-1 parity with Finnish translation
adds missing translation in Whistle exercise details
1 parent dd2714e commit 4e60053

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

data/part-4/1-introduction-to-object-oriented-programming.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,8 @@ Pillin tulee toimia seuraavasti. -->
607607

608608
Create a class named `Whistle`. Add the variable `private String sound` to the class. After that, create the constructor `public Whistle(String whistleSound)`, which is used to create a new whistle that's given a sound.
609609

610+
Then create the method `public void sound()` that prints the whistle's sound.
611+
610612
<!-- ```java
611613
Pilli sorsapilli = new Pilli("Kvaak");
612614
Pilli kukkopilli = new Pilli("Peef");

0 commit comments

Comments
 (0)