Пример #1
0
        static void Main(string[] args)
        {
            tShirt  J1        = new tShirt("L", "Red", 500f, "Nomad Symbol");
            tShirt  J2        = new tShirt("M", "Green", 750f, "Street Kid Symbol");
            tShirt  J3        = new tShirt("S", "Blue", 625f, "Corpo Symbol");
            user    Jame      = new user("Jame Watson", "*****@*****.**");
            Address location1 = new Address("Phutthamonthon", "Nakon Prathom", "10180");

            Jame.sent();
            Jame.shirt(J1);
            Jame.shirt(J2);
            Jame.shirt(J3);
            J1.tshirt1();
            J2.tshirt1();
            J3.tshirt1();
            Jame.ADDress(location1);
            location1.address1();
            Console.WriteLine("Total Cost : {0} Bath", J1.cost + J2.cost + J3.cost);

            Console.ReadLine();
        }
Пример #2
0
 public void shirt(tShirt tshirt)
 {
     shirtOrder.Add(tshirt);
 }