Initial commit
This commit is contained in:
parent
6e723b340d
commit
f8d8b6cc3f
@ -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() {
|
||||||
|
|||||||
@ -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() {
|
||||||
|
|||||||
@ -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() {
|
||||||
|
|||||||
@ -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() {
|
||||||
|
|||||||
@ -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() {
|
||||||
|
|||||||
@ -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() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user