摘要:
工程名称:命令接口:CommandInSimple 下载目录:http://www.cnblogs.com/jrsmith/admin/Files.aspx,CommandInSimple.zip1 package com.jyu.command;2 3 /**命令接口*/4 public interface Command {5 6 public void execute();7 }打开电灯的具体命令对象: 1 package com.jyu.command; 2 3 public class LightOnCommand implements Command { 4 5 ... 阅读全文