Пример #1
0
 public Cat(Animal friend)
     : this()
 {
     Friend = friend;
 }
Пример #2
0
 public Duck(Animal friend, int age)
     : this()
 {
     Interlocked.Increment(ref CtorFriendAge);
     Age = age;
     Friend = friend;
 }
Пример #3
0
 public Duck(Animal friend)
     : this()
 {
     Friend = friend;
 }
Пример #4
0
 public Duck(int age, Animal friend)
     : this()
 {
     Interlocked.Increment(ref CtorAgeFriend);
     Age = age;
     Friend = friend;
 }
Пример #5
0
 public Dog(Animal friend)
     : this()
 {
     Friend = friend;
 }