Обновлены файлы

This commit is contained in:
valerpan 2026-07-19 00:32:15 +03:00
parent 52235fcad1
commit e5cd30ee29
8 changed files with 13 additions and 27 deletions

View File

@ -1,11 +1,11 @@
import animals.Animal; import animals.Animal;
import animals.Swim; import animals.Swim;
import animals.carnivores.Bear; import animals.Bear;
import animals.carnivores.Fish; import animals.Fish;
import animals.carnivores.Kotik; import animals.Kotik;
import animals.herbivores.Deer; import animals.Deer;
import animals.herbivores.Duck; import animals.Duck;
import animals.herbivores.Sheep; import animals.Sheep;
import employee.Worker; import employee.Worker;
import food.Grass; import food.Grass;
import food.Meat; import food.Meat;

View File

@ -1,7 +1,4 @@
package animals.carnivores; package animals;
import animals.Carnivorous;
import animals.Run;
import animals.Voice;
public class Bear extends Carnivorous implements Run, Voice { public class Bear extends Carnivorous implements Run, Voice {

View File

@ -1,6 +1,4 @@
package animals.herbivores; package animals;
import animals.Herbivore;
import animals.Run;
public class Deer extends Herbivore implements Run { public class Deer extends Herbivore implements Run {

View File

@ -1,5 +1,4 @@
package animals.herbivores; package animals;
import animals.*;
public class Duck extends Herbivore implements Run, Swim, Fly, Voice { public class Duck extends Herbivore implements Run, Swim, Fly, Voice {

View File

@ -1,6 +1,4 @@
package animals.carnivores; package animals;
import animals.Carnivorous;
import animals.Swim;
public class Fish extends Carnivorous implements Swim { public class Fish extends Carnivorous implements Swim {

View File

@ -2,7 +2,7 @@ package animals;
import food.Food; import food.Food;
import food.Grass; import food.Grass;
public class Herbivore extends Animal{ public abstract class Herbivore extends Animal{
public Herbivore() {} public Herbivore() {}

View File

@ -1,7 +1,4 @@
package animals.carnivores; package animals;
import animals.Carnivorous;
import animals.Run;
import animals.Voice;
public class Kotik extends Carnivorous implements Run, Voice { public class Kotik extends Carnivorous implements Run, Voice {

View File

@ -1,7 +1,4 @@
package animals.herbivores; package animals;
import animals.Herbivore;
import animals.Run;
import animals.Voice;
public class Sheep extends Herbivore implements Run, Voice { public class Sheep extends Herbivore implements Run, Voice {