public override void CollideWith(ApolloSpacecraft ship) { Console.WriteLine("ExplodingAsteroid hit an ApolloSpacecraft"); }
public void DubbleDispatchProblem() { SpaceShip theApolloSpacecraft2 = new ApolloSpacecraft(); theExplodingAsteroid.CollideWith(theApolloSpacecraft2); }
public virtual void CollideWith(ApolloSpacecraft ship) { Console.WriteLine("Asteroid hit an ApolloSpacecraft"); }