We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da72f04 commit f7c2cadCopy full SHA for f7c2cad
adapter/src/main/java/com/iluwatar/App.java
@@ -2,8 +2,14 @@
2
3
/**
4
*
5
- * Adapter (GnomeEngineer) converts the interface of the
6
- * target class (GoblinGlider) into suitable one expected
+ * There are two variations of the Adapter pattern: The
+ * class adapter implements the adaptee's interface whereas
7
+ * the object adapter uses composition to contain the adaptee
8
+ * in the adapter object. This example uses the object adapter
9
+ * approach.
10
+ *
11
+ * The Adapter (GnomeEngineer) converts the interface of the
12
+ * target class (GoblinGlider) into a suitable one expected
13
* by the client (GnomeEngineeringManager).
14
15
*/
0 commit comments