Hey guys, i've been trying to implement a traffic system for a school project. I've been trying to call a method form the TrafficLight class that informs if the lights are red or green, but I can't seem to do it right.
Here is the method in class TrafficLight:

Here is the method in class TrafficLight:

