Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- include ("Clases.php");
- $mazda=new Carro();
- $pegaso=new Camion();
- $mazda->set_color("rojo","mazda");
- echo "El carro tiene " . $mazda->get_ruedas() . " ruedas <br>";
- echo "El camion tiene " . $pegaso->get_ruedas() . " ruedas <br>";
- echo "El camion es de color " . $pegaso->color . "<br>";
- echo "El camion " . $pegaso->frena();
- echo "El camion " . $pegaso->girar();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement