摘要:
接口父类的定义,把子类中公共的部分放到父类中。最大限度利用继承。。。public class Operation{private int _numberA=0;private int _numberB=0;public int NumberA{get{return _numberA;}set{_numberA=value;}}public int NumberB{get{return _numberB;}set{_numberB=value;}}public virtual int GetResult(){int result=0;return result;}}//子类1的实现表示一种产品或 阅读全文