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

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.Swim;
import animals.carnivores.Bear;
import animals.carnivores.Fish;
import animals.carnivores.Kotik;
import animals.herbivores.Deer;
import animals.herbivores.Duck;
import animals.herbivores.Sheep;
import animals.Bear;
import animals.Fish;
import animals.Kotik;
import animals.Deer;
import animals.Duck;
import animals.Sheep;
import employee.Worker;
import food.Grass;
import food.Meat;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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