Пример #1
0
 public override string ToString()
 {
     return($"duck: {Duck.ToString()}, toy: {Toy.ToString()}");
 }
Пример #2
0
 public DuckToy(Duck duck = default, Toy toy = default)
 {
     Duck = duck;
     Toy  = toy;
 }