Interfaces y Herencia
1
7/21/2019 Interfaces y Herencia http://slidepdf.com/reader/full/interfaces-y-herencia 1/1 INSTRUMENTOS MUSICALES + tocar() : void Viento - "Estoy soplando una flauta": int Cuerda - "Estoy rascando un violin": int Percusión - "Estoy golpeando el instrumento de bombo": i nt Orquesta - Bombo: int - Cuerda: int - Flauta: int + afinar() : void + tocar() : void «interface» Interface1 + imprimir "Empezamos el Conciertazo"() : void + imprimir "Estoy afinando el:"() : void «flow»
-
Upload
deisy-secundino-gonzalez -
Category
Documents
-
view
230 -
download
1
description
POO
Transcript of Interfaces y Herencia
7/21/2019 Interfaces y Herencia
http://slidepdf.com/reader/full/interfaces-y-herencia 1/1
INSTRUMENTOS
MUSICALES
+ tocar() : void
Viento
- "Estoy soplando una flauta": int
Cuerda
- "Estoy rascando un violin": int
Percusión
- "Estoy golpeando el instrumento de bombo": int
Orquesta
- Bombo: int
- Cuerda: int
- Flauta: int
+ afinar() : void
+ tocar() : void
«interface»
Interface1
+ imprimir "Empezamos el Conciertazo"() : void
+ imprimir "Estoy afinando el:"() : void«flow»