Esempio n. 1
0
 public override void Swim(SwimDistance distance)
 {
     throw new NotImplementedException();
 }
Esempio n. 2
0
 public override void Swim(SwimDistance distance)
 {
     Console.WriteLine($"{AtheleteInformation} - swimming as fast as I can for {(int) distance}");
 }
Esempio n. 3
0
 public abstract void Swim(SwimDistance distance);
Esempio n. 4
0
 public Swimmer(string firstName, string lastName, Gender gender, string country, SwimDistance distance) : base(firstName, lastName, gender, country)
 {
     this.distance = distance;
 }