mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-15 04:59:24 +00:00
added facade sample
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package com.iluwatar;
|
||||
|
||||
public class DwarvenCartOperator extends DwarvenMineWorker {
|
||||
|
||||
@Override
|
||||
public void work() {
|
||||
System.out.println(name() + " moves gold chunks out of the mine.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String name() {
|
||||
return "Dwarf cart operator";
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user