public static function main(array $args = array())
 {
     $tea = new Tea();
     $coffee = new Coffee();
     println("Making tea...");
     $tea->prepareRecipe();
     println("Making coffee...");
     $coffee->prepareRecipe();
 }
Exemple #2
0
<?php

function __autoload($class_name)
{
    require_once $class_name . '.php';
}
$coffee = new Coffee();
$tea = new Tea();
$coffee->prepareRecipe();
$tea->prepareRecipe();