public static string Mostrar(Tempera tempera) { string retorno = ""; if (!Equals(tempera, null)) { retorno = tempera.Mostrar(); } return(retorno); }
private string Mostrar() { string retorno = "TEMPERAS MAXIMA:" + this._cantidadMaxima.ToString() + "\n"; foreach (Tempera tempera in this._temperas) { if (tempera != null) { retorno += Tempera.Mostrar(tempera); } } return(retorno); }