added adapter example

This commit is contained in:
2024-10-14 08:56:56 +02:00
parent ddc6253386
commit 312a5276d7
4 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
package learn.simple_adapter;
public class Main {
public static void main(String[] args) {
Adaptee adaptee = new Adaptee();
Target adapter = new Adapter(adaptee);
adapter.request();
}
}