public void GiveToy(Toy t) { this.CurrentToy = t; //replcedcurrent toy this.Toys.Add(t); //Add the toy to the list }
public DuckToy(Duck duck = default, Toy toy = default) { Duck = duck; Toy = toy; }
public Pet() { this.CurrentToy = new Ball(); //Sets the deault toy this.Toys = new List <Toy>(); //initialize the list of toys this.Toys.Add(CurrentToy); //add default to to list }