Initial commit

This commit is contained in:
valerpan 2026-07-19 01:20:27 +03:00
parent 22a8c2be3c
commit 9491264c7c
5 changed files with 5 additions and 5 deletions

View File

@ -19,7 +19,7 @@ public class Bear extends Carnivorous implements Run, Voice {
}
@Override
public Voice getVoice(){
public String getVoice() {
return "гррр";
}
}

View File

@ -39,7 +39,7 @@ public class Duck extends Herbivore implements Run, Swim, Fly, Voice {
}
@Override
public Voice getVoice(){
public String getVoice(){
return "кря";
}
}

View File

@ -19,7 +19,7 @@ public class Kotik extends Carnivorous implements Run, Voice {
}
@Override
public Voice getVoice(){
public String getVoice(){
return "мяу";
}
}

View File

@ -19,7 +19,7 @@ public class Sheep extends Herbivore implements Run, Voice {
}
@Override
public Voice getVoice(){
public String getVoice(){
return "бее";
}
}

View File

@ -1,5 +1,5 @@
package animals;
public interface Voice {
Voice getVoice();
String getVoice();
}