Ejemplo n.º 1
0
        static void Main(string[] args)
        {
//            SushiStoreBase store = new XunYangSushiStore();
//            store.OrderSushi("tomato");
//            store = new XiAnSushiStore();
//            store.OrderSushi("ham");

            BuildingMaterialsStoreBase buildingMaterialsStore = new CementStore();

            buildingMaterialsStore.ShowPrice();
            buildingMaterialsStore = new TimberStore();
            buildingMaterialsStore.ShowPrice();
            Console.ReadLine();
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            //            SushiStoreBase store = new XunYangSushiStore();
            //            store.OrderSushi("tomato");
            //            store = new XiAnSushiStore();
            //            store.OrderSushi("ham");

            BuildingMaterialsStoreBase buildingMaterialsStore=new CementStore();
            buildingMaterialsStore.ShowPrice();
            buildingMaterialsStore=new TimberStore();
            buildingMaterialsStore.ShowPrice();
            Console.ReadLine();
        }