public RespListMgr() { //构造责任链 bigboy = new BigBoy(100, null); littleboy = new LittleBoy(0, bigboy); }
public BigBoy(int weight, IRepNode next) : base(weight, next) { }
public LittleBoy(int weight, IRepNode next) : base(weight, next) { }
public IRepNode(int weight, IRepNode next) { this.weight = weight; this.next = next; }