public static void Main(string[] args)
        {
            Array_int arr1 = new Array_int();

            arr1[0] = 100;
            Console.WriteLine(arr1[0]);

            Array_double arr2 = new Array_double();

            arr2[0] = 3.14;
            Console.WriteLine(arr2[0]);

            Array_generic <int> arr3 = new Array_generic <int>();

            arr3[0] = 100;
            Console.WriteLine(arr3[0]);

            Array_generic <string> arr4 = new Array_generic <string>();

            arr4[0] = "Generic Class";
            Console.WriteLine(arr4[0]);
        }
Ejemplo n.º 2
0
 static void Main(string[] args)
 {
     Array_int arr1 = new Array_int();
     {
         arr1[0] = 100;
         Console.WriteLine(arr1[0]);
     }
     Array_double arr2 = new Array_double();
     {
         arr2[0] = 3.14;
         Console.WriteLine(arr2[0]);
     }
     Array_Generic <int> arr3 = new Array_Generic <int>();
     {
         arr3[0] = 150;
         Console.WriteLine(arr3[0]);
     }
     Array_Generic <string> arr4 = new Array_Generic <string>();
     {
         arr4[0] = "하이";
         Console.WriteLine(arr4[0]);
     }
 }