Question: Implement a class that simulates a traffic light. The next function advances the color in the usual way, from green to yellow to red, then
Implement a class that simulates a traffic light. The next function advances the color in the usual way, from green to yellow to red, then again to green. Provide two constructors, as described in the documentation of the public interface. Also supply a member function that yields the number of times that this traffic light has been red.
Complete the following file:



Tester.cpp 1 2 3 4 5 #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
