public static void Main(string[] args) { Asteroid a1 = new Asteroid(); Asteroid a2 = new Asteroid(); Spaceship s1 = new Spaceship(); Spaceship s2 = new Spaceship(); s1.Accept(a1); s1.Accept(as); a1.Accept(s1); a2.Accept(a2); }
public static void Main(string[] args) { Asteroid a1 = new Asteroid(); Asteroid a2 = new Asteroid(); Spaceship s1 = new Spaceship(); Spaceship s2 = new Spaceship(); s1.Accept(a1); s1.Accept(as); a1.Accept(s1); a2.Accept(a2); }