Пример #1
0
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>POO1</title>
    </head>
    <body>
        <h1>Esto es una prueba</h1>
        <h1>Ahora lo estoy modificando desde la pág de GitHub</h1>
        <?php 
include 'vehiculos.php';
$mazda = new Coche();
$pegaso = new Camion();
echo 'El mazda tiene ' . $mazda->getRuedas() . ' ruedas<br>';
echo 'El pegaso tiene ' . $pegaso->getRuedas() . ' ruedas<br>';
echo 'El mazda tiene un motor de ' . $mazda->getMotor() . ' cc<br>';
?>
    </body>
</html>