Updated the adapter example.
This commit is contained in:
@@ -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