Example #1
0
 public override string ToString()
 {
     return("Animal/" + Diet.ToString() + "/" + Size.ToString());
 }
Example #2
0
        public override string ToString()
        {
            string s = "Animal: " + n.ToString() + ", " + Diet.ToString() + ", " + Size.ToString();

            return(s);
        }