1.2:简单工厂.pdf
Operation opt = OperatorFactory.CreateOperator(this.cboOperator.Text, double.Parse(this.txtNum1.Text), double.Parse(this.txtNum2.Text));//多态1 this.txtResult.Text = opt.DoOperate().ToString(); using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Thread
用户评论