static void Main(string[] args) { Car car = new Car(); HighwayPatrol highwayPolice = new HighwayPatrol(); // Wiring the event handler of the listener to the event car.CarSpeedChanged += highwayPolice.HandleWhenExceedSpeed; car.Speed = 80; // Raise the event System.Console.ReadKey(); }