static void Main(string[] args) { SubtratctFactory sf=new SubtratctFactory(); Operator op = sf.CreateOperator(); op.numberA = 10; op.numberB = 5; var b=op.GetResult(); Console.WriteLine(b); Console.ReadKey(); }
static void Main(string[] args) { SubtratctFactory sf = new SubtratctFactory(); Operator op = sf.CreateOperator(); op.numberA = 10; op.numberB = 5; var b = op.GetResult(); Console.WriteLine(b); Console.ReadKey(); }