mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-16 22:59:11 +00:00
22 lines
343 B
Java
22 lines
343 B
Java
package com.iluwatar;
|
|
|
|
/**
|
|
*
|
|
* Device class (adaptee in the pattern).
|
|
*
|
|
*/
|
|
public class GoblinGlider {
|
|
|
|
public void attachGlider() {
|
|
System.out.println("Glider attached.");
|
|
}
|
|
|
|
public void gainSpeed() {
|
|
System.out.println("Gaining speed.");
|
|
}
|
|
|
|
public void takeOff() {
|
|
System.out.println("Lift-off!");
|
|
}
|
|
}
|