示例#1
0
        public string MostrarJugo()
        {
            StringBuilder sb = new StringBuilder();

            sb.Append(Producto.MostrarProducto(this));
            sb.AppendLine(this._sabor.ToString());
            return(sb.ToString());
        }
示例#2
0
        public static string MostrarGalletita(Galletita galleta)
        {
            StringBuilder sb = new StringBuilder();

            sb.Append(Producto.MostrarProducto((Producto)galleta));   // (Producto) esta de mas. se castea solo
            sb.AppendLine(galleta._peso.ToString());
            return(sb.ToString());
        }
示例#3
0
        public string MostrarGaseosa()
        {
            Producto.MostrarProducto(this);
            StringBuilder sb = new StringBuilder();

            sb.Append(Producto.MostrarProducto(this));
            sb.AppendLine(this._litros.ToString());
            return(sb.ToString());
        }