This commit is contained in:
2024-05-17 14:16:29 +03:00
commit fea8580204
8 changed files with 140 additions and 0 deletions

24
index.php Normal file
View File

@ -0,0 +1,24 @@
<?php
require_once "src/Animal.php";
require_once "src/traits/Jumping.php";
require_once "src/Cat.php";
require_once "src/Dog.php";
require_once "src/Cow.php";
$cat = new \src\Cat();
$dog = new \src\Dog();
$cow = new \src\Cow();
$dog->makeSound();
$cat->makeSound();
$cow->makeSound();
$dog->makeJump();
$cat->makeJump();
echo "<pre>";
print_r($cat);
$cat->meow();
$dog->woof();