基类

 1 using System;
 2 using System.Collections.Generic;
 3 using System.Linq;
 4 using System.Text;
 5 using System.Threading.Tasks;
 6 
 7 namespace jj4
 8 {
 9    public class OpertionAdd:Operation
10     {
11        public override double GetResult() 
12        {
13            double result = NumberA + NumberB;
14            return result;
15        }
16     }
17 }
View Code
原文地址:https://www.cnblogs.com/nancheng/p/6691606.html