Initial commit

This commit is contained in:
valerpan 2026-07-19 01:32:56 +03:00
parent 6e723b340d
commit f8d8b6cc3f
6 changed files with 19 additions and 6 deletions

View File

@ -4,9 +4,12 @@ public class Bear extends Carnivorous implements Run, Voice {
public Bear(String name) { public Bear(String name) {
super(name); super(name);
this.setSatiety(2);
} }
public Bear(){} public Bear(){
this.setSatiety(2);
}
@Override @Override
public void run() { public void run() {

View File

@ -4,9 +4,11 @@ public class Deer extends Herbivore implements Run {
public Deer(String name) { public Deer(String name) {
super(name); super(name);
this.setSatiety(2);
} }
public Deer(){} public Deer(){
this.setSatiety(2);}
@Override @Override
public void run() { public void run() {

View File

@ -4,9 +4,11 @@ public class Duck extends Herbivore implements Run, Swim, Fly, Voice {
public Duck(String name) { public Duck(String name) {
super(name); super(name);
this.setSatiety(2);
} }
public Duck(){} public Duck(){
this.setSatiety(2);}
@Override @Override
public void run() { public void run() {

View File

@ -4,9 +4,11 @@ public class Fish extends Carnivorous implements Swim {
public Fish(String name) { public Fish(String name) {
super(name); super(name);
this.setSatiety(2);
} }
public Fish (){} public Fish (){
this.setSatiety(2);}
@Override @Override
public void swim() { public void swim() {

View File

@ -4,9 +4,11 @@ public class Kotik extends Carnivorous implements Run, Voice {
public Kotik(String name) { public Kotik(String name) {
super(name); super(name);
this.setSatiety(2);
} }
public Kotik(){} public Kotik(){
this.setSatiety(2);}
@Override @Override
public void run() { public void run() {

View File

@ -4,9 +4,11 @@ public class Sheep extends Herbivore implements Run, Voice {
public Sheep(String name) { public Sheep(String name) {
super(name); super(name);
this.setSatiety(2);
} }
public Sheep (){} public Sheep (){
this.setSatiety(2);}
@Override @Override
public void run() { public void run() {