Exemple #1
0
 public override string CollideWith(SpaceShip ship)
 {
     return($"ExplodingAsteroid hit a {ship.GetShipType()}");
 }
Exemple #2
0
 public virtual string CollideWith(SpaceShip ship)
 {
     return("Asteroid hit a SpaceShip");
 }