Example #1
0
        static void Main(string[] args)
        {
            Person_GetSet p1 = new Person_GetSet();
            p1.SetName("아이유");
            Console.WriteLine(p1.GetName());

            Person_Properties p2 = new Person_Properties();
            p2.Name = "장만월";
            Console.WriteLine(p2.Name);
        }
Example #2
0
        static void Main(string[] args)
        {
            Person_GetSet p1 = new Person_GetSet();

            p1.SetName("장만월");
            Console.WriteLine(p1.GetName());

            Person_Properties p2 = new Person_Properties();

            p2.Name = "아이유";
            Console.WriteLine(p2.Name);

            int[] nums = new int[5];
            Console.WriteLine(nums.Length);
        }