In the main.php, autoload is added and a new object is created.
function __autoload ($class) {
require_once($class . '.php');
}
...
$t = new Triangle($side1, $side2, $side3);
Then in Triangle.php, Triangle extends Shape as following.
class Triangle extends Shape {
...
So there is another class in Shape.php which is abstract class.
abstract class Shape {
abstract protected function get_area();
abstract protected function get_perimeter();
}
I can see that __autoload function call Triangle.php, but does it call Shape.php at the same time?