<?php require_once 'Rectangle.php'; require_once 'Square.php'; // $rec = new Rectangle(4,5); // echo $rec->area() . PHP_EOL; // $sqr = new Rectangle(3,20); // echo $sqr->area() . PHP_EOL; // $another = new Square(4,6); // echo $another->area() . PHP_EOL; // echo $another->perimeter() . PHP_EOL; // $sl = new Rectangle(4,5); // echo $sl->area() . PHP_EOL; $square = new Square(4); echo $square->area() . PHP_EOL; echo $square->getWidth() . PHP_EOL;