mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-12 02:14:07 +00:00
Updated the adapter example.
This commit is contained in:
1 parent
9a0bb6b0fe
commit
37d58d31d0
4 files changed
+41
-25
No files matched your search
@@ -2,7 +2,7 @@ package com.iluwatar;
|
||||
|
||||
/**
|
||||
*
|
||||
* Adapter (GnomeEngineerAdapter) converts the interface of the
|
||||
* Adapter (GnomeEngineer) converts the interface of the
|
||||
* target class (GoblinGlider) into suitable one.
|
||||
*
|
||||
*/
|
||||
@@ -10,7 +10,7 @@ public class App
|
||||
{
|
||||
public static void main( String[] args )
|
||||
{
|
||||
GnomeEngineerAdapter engineer = new GnomeEngineerAdapter();
|
||||
engineer.flyGoblinGlider();
|
||||
GnomeEngineer engineer = new GnomeEngineer();
|
||||
engineer.operateDevice();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user