mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-17 10:59:17 +00:00
added adapter sample
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package com.iluwatar;
|
||||
|
||||
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!");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user