mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-08-16 08:23:10 +00:00
change the adapter pattern, manager class type to Interface
This commit is contained in:
@@ -15,7 +15,7 @@ package com.iluwatar;
|
|||||||
public class App {
|
public class App {
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
GnomeEngineeringManager manager = new GnomeEngineeringManager();
|
Engineer manager = new GnomeEngineeringManager();
|
||||||
manager.operateDevice();
|
manager.operateDevice();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user