《Head First设计模式》阅读笔记.第七章-外观模式实例补充
// 测试计算机外观类public class TestComputer {public static void main(String[] args) {Power power = new Power();MainBoard board = new MainBoard();HardDisk disk = new HardDisk();OperationSystem system = new OperationSystem();Computer computer = new Computer(power, board, disk, system);computer.startup();computer.shutdown();}}