예제 #1
0
파일: Program.cs 프로젝트: juan102/Parcial2
        static void Main(string[] args)
        {
            Ingrediente Ingrediente1 = new Ingrediente("carne", 200, 20, "kilos");
            Ingrediente Ingrediente2 = new Ingrediente("tortillas bimbo", 20, 2, "");

            TacosComposite Tacos = new TacosComposite("Tacos De Carne");

            Tacos.Add(Ingrediente1);
            Tacos.Add(Ingrediente2);
            Console.WriteLine(Tacos.CostoTotal);
        }
예제 #2
0
 static void Main(string[] args)
 {
     Ingrediente oingrediente = new Ingrediente("harina", 300, 444, "gramos");
 }