added composite example
This commit is contained in:
8
src/learn/simple_composite/Leaf.java
Normal file
8
src/learn/simple_composite/Leaf.java
Normal file
@@ -0,0 +1,8 @@
|
||||
package learn.simple_composite;
|
||||
|
||||
public class Leaf implements Component {
|
||||
@Override
|
||||
public void operation() {
|
||||
System.out.println("Leaf operation" + this);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user