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.
14 lines
285 B
14 lines
285 B
3 years ago
|
package patronAdapter;
|
||
|
|
||
|
//Esta es la clase adaptada o Adaptable
|
||
|
public class GuitarraAcustica {
|
||
|
|
||
|
public void tocarGuitarra() {
|
||
|
System.out.println("Se esta tocando la guitarra");
|
||
|
}
|
||
|
|
||
|
public void dejarGuitarra() {
|
||
|
System.out.println("Se ha dejado de tocar la guitarra");
|
||
|
}
|
||
|
}
|