Ejemplo n.º 1
0
        public static void Main(string[] args)
        {
            Fashion f = new Fashion(1, "ao", 20, 20, "Ngoc trinh", "tiep", "red", "m");

            f.checkSizeColor("red", "m");
            Diamon d = new Diamon(1, "ao", 20, 20, "Ngoc trinh", "tiep", 15);

            d.checkCare();
        }
Ejemplo n.º 2
0
        public static void Main(string[] args)
        {
            Product p = new Product(1, "xzy", 8000, 3, "as", "acs");
            Diamon  d = new Diamon(1, "xzy", 8000, 3, "as", "acs", 9);
            Fashion f = new Fashion(1, "xzy", 8000, 3, "as", "acs", "xanh", 2);

            f.color = "xanh";
            f.size  = 2;
            f.check("xanh", 2);
        }
Ejemplo n.º 3
0
            public static void Main(string[] args)
            {
                Product p1 = new Diamon(1, "Diamon 2C", 5000, 2, "link1", "desc", 2.0);
                Product p2 = new Fashion(1, "jeans", 50000, 10, "img1", "desc", "black", "XL");
                Product p3 = new Product(1, "Toy", 100000, 10, "img1", "desc");

                Cart c = new Cart();

                c.city    = "Hn";
                c.country = "Vietnam";
                c.addPro(p1);
                c.addPro(p1);
                c.addPro(p2);
                c.addPro(p2);
                c.show();
                c.total();
                c.addPro(p1);
                c.removePro(p2);
                c.addPro(p3);
                c.show();
                c.total();
            }