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

View File

@@ -3,14 +3,15 @@ package com.iluwatar;
/**
*
* Adapter (GnomeEngineer) converts the interface of the
* target class (GoblinGlider) into suitable one.
* target class (GoblinGlider) into suitable one expected
* by the client (GnomeEngineeringManager).
*
*/
public class App
{
public static void main( String[] args )
{
GnomeEngineer engineer = new GnomeEngineer();
engineer.operateDevice();
GnomeEngineeringManager manager = new GnomeEngineeringManager();
manager.operateDevice();
}
}