2014-08-11 22:07:16 +03:00
|
|
|
package com.iluwatar;
|
|
|
|
|
2014-08-31 08:46:10 +03:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* Adapter (GnomeEngineerAdapter) converts the interface of the
|
|
|
|
* target class (GoblinGlider) into suitable one.
|
|
|
|
*
|
|
|
|
*/
|
2014-08-11 22:07:16 +03:00
|
|
|
public class App
|
|
|
|
{
|
|
|
|
public static void main( String[] args )
|
|
|
|
{
|
|
|
|
GnomeEngineerAdapter engineer = new GnomeEngineerAdapter();
|
|
|
|
engineer.flyGoblinGlider();
|
|
|
|
}
|
|
|
|
}
|