コード例 #1
0
        private static void BasicObjectOrientation()
        {
            Customer cust = new Customer();
            cust.Setter("rahim");
            Console.WriteLine(cust.Getter());

            Customer cust2 = new Customer()
            {
                Age = 23
            };
            Console.WriteLine(cust2.Age);

            Customer cust3 = new Customer("salma", 12);

            Dealer dlr = new Dealer("akib", 23, "00-aaB");
            Console.WriteLine(dlr.Age + "\t" + dlr.Name + "\t" + dlr.Dealer_Code);
            dlr.Display();
        }