} public function getNumberId() { return $this->number; } public function printCaracteristicas() { echo $this->title . "<br>"; echo $this->price . " (any iva)"; } } class cintaVideo extends soporte { private $duration; function __construct($title, $number, $price, $duration) { parent::__construct($title, $number, $price); //constructor of classe soporte $this->duration = $duration; } public function showCaracteristicas() { echo "move in VHS:<br>"; parent::muestraCaracteristicas(); echo "<br>Duration:" . $this->duration; } } $soporte1 = new soporte("Avengers", 11, 17311); echo "<b>" . $soporte1->title . "</b><br>"; echo "price:" . $soporte1->getPriceAnyIVA() . " pons<br>"; echo "price with iva:" . $soporte1->getPriceWithIva() . " pons<br>";