You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
322 B
20 lines
322 B
3 years ago
|
package patronAdapter;
|
||
|
|
||
|
//Esta es la clase Adaptador.
|
||
|
|
||
|
public class GuitarraElectricaAcustica extends Guitarra{
|
||
|
|
||
|
GuitarraAcustica acustica = new GuitarraAcustica();
|
||
|
|
||
|
@Override
|
||
|
public void encenderGuitarra() {
|
||
|
acustica.tocarGuitarra();
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public void apagarGuitarra() {
|
||
|
acustica.dejarGuitarra();
|
||
|
}
|
||
|
|
||
|
}
|