示例#1
0
        public static void Start()
        {
            MathClass math = new MathClass();

            System.Console.WriteLine(math.Addition(2, 3));

            TextClass text = new TextClass();

            System.Console.WriteLine(@"Hello World");
        }
        static void Main(String[] args)
        {
            MathClass myClass = new MathClass();


            myClass.FirstNumber  = 10;
            myClass.SecondNumber = 10;

            Console.WriteLine("Addition result :" + myClass.Addition());
            Console.WriteLine("Substraction result :" + myClass.Substraction());
            Console.WriteLine("Multiplication result :" + myClass.Multiplication());
            Console.WriteLine("Division result :" + myClass.Division());
            Console.ReadLine();
        }