Improved the adapter pattern example. Updated the class diagram.

This commit is contained in:
Ilkka Seppala
2014-09-07 15:08:43 +03:00
parent d4ee7a7da0
commit b8365e9e4c
6 changed files with 33 additions and 13 deletions
@@ -2,21 +2,20 @@ package com.iluwatar;
/**
*
* Adaptee class.
* Device class (adaptee in the pattern).
*
*/
public class GoblinGlider {
public void attachGlider() {
System.out.println("glider attached");
System.out.println("Glider attached.");
}
public void gainSpeed() {
System.out.println("gaining speed");
System.out.println("Gaining speed.");
}
public void takeOff() {
System.out.println("lift-off!");
System.out.println("Lift-off!");
}
}