MathLibrary.cs

using System;
using System.Collections.Generic;
using System.Text;

namespace SampleLibrary
{
    public class SimpleMath
    {
        public int Add(int a, int b)
        {
            return a + b;
        }

        public float Add(float a, float b)
        {
            return a + b;
        }

        public int Subtract(int a, int b)
        {
            return a - b;
        }

        public float Subtract(float a, float b)
        {
            return a - b;
        }

        public int Multiply(int a, int b)
        {
            return a * b;
        }

        public float Multiply(float a, float b)
        {
            return a * b;
        }

        public void monkeyTree()
        { }
    }
}

原文地址:https://www.cnblogs.com/dushu/p/2513449.html