Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            int a = 10;

            Console.WriteLine("Hello World!");
            sample sm = new sample();

            //Console.WriteLine(sm.result(10));
            //Console.WriteLine(sm.result(10, 20));
            sm.result(a);     // String is pass by reference but its value is not changed
            sm.result(ref a); //
            Console.ReadLine();
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            sample s  = new sample();
            sample s1 = new sample();
            sample s2 = new sample();
            sample s3 = new sample();

            sample.show();
            //   Sales s = new Sales("Kolhapuri-Bhadang",5 ,40);
            //   Sales s1 = new Sales("Laadu", 2, 40);
            //   s.show();
            //   s1.show();
            //  s1.display();



            //   Calculate c = new Calculate();
            //   Console.WriteLine(c.area(2));
            //   Console.WriteLine(c.area(5,6));
            //   Console.WriteLine(c.area(4.5));
            //   Console.WriteLine(c.area(12.4,8));

            Console.ReadKey();
        }