//Clase hija var Auto = Vehiculo.extend ({ nombre: 'Auto', encender: function() { alert('Vehiculo "' + this.getNombre() + '" encendido'); this.acelerar(); }, acelerar:function() { alert(this.getNombre() + ' esta acelerando!'); } });