public bool TryAdd(Breed breed) { if (!AllowDuplicates && Contains(breed.ToString())) { return(false); } Breeds.Add(breed); return(true); }
public override string Introduce() { return("I’m " + Name.ToString() + " of " + Breed.ToString() + ". I’m a cat."); }