Exemple #1
0
        public string MostrarDatos(IVegetales <Verdura> elemento)
        {
            StringBuilder sb = new StringBuilder();

            sb.AppendLine(base.MostrarDatos());
            sb.AppendLine("Verdura Tipo" + this.tipo);
            return(sb.ToString());
        }
        public string MostrarDatos(IVegetales <Fruta> elemento)
        {
            StringBuilder sb = new StringBuilder();

            sb.AppendLine(base.MostrarDatos());
            sb.AppendLine("Color" + this.color);
            return(sb.ToString());
        }
        public string MostrarDatos(IVegetales <Carnibora> elemento)
        {
            StringBuilder sb = new StringBuilder();

            sb.AppendLine(base.MostrarDatos());
            sb.AppendLine("Tamaño: " + this.tamanio);
            sb.AppendLine("Carnivora Tipo : " + this.tipo);
            return(sb.ToString());
        }