コード例 #1
0
        static void Main(string[] args)
        {
            Bola b1 = new Bola();
            Bola b2 = new Bola();
            Bola b3 = new Bola();

            Console.WriteLine(Bola.numBolas);

            Matematica.Somar(20, 5);
            Console.WriteLine(Matematica.resultado);
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: radamantes/softblue
        static void Main(string[] args)
        {
            Bola b1 = new Bola();

            Console.WriteLine(Bola.numBola);

            Bola b2 = new Bola();

            Console.WriteLine(Bola.numBola);

            //Matematica m = new Matematica();
            //int soma = m.Somar(22, 35);
            int soma = Matematica.Somar(22, 35);

            Console.WriteLine(soma);
        }