public static IndependentDog Newdog(string name, int age, bool stray, DogTypes dogtype) { IndependentDog dog; if (!stray) { dog = new IndependentDog(name, age, dogtype); } else { dog = new IndependentDog(); } return(dog); }
public void Adopt(IndependentDog dog) { Dogs.Add(dog); }