Пример #1
0
        public Context_Cl(string flag)
        {
            switch (flag)
            {
            case "1":
                oper = new Add_Cl();
                break;

            case "2":
                oper = new Sub_Cl();
                break;

            default:;
                break;
            }
        }
Пример #2
0
 public override Operat_Cl GetObject()
 {
     return  operatCl=new Sub_Cl();
 }
Пример #3
0
 public override Operat_Cl GetObject()
 {
     return(operatCl = new Sub_Cl());
 }