Question Description
13: Traffic Light Device
Design a 3 light traffic light object using a UML Diagram.
Think about the attributes of a traffic light. It has the states, Red, Yellow, and Green. It can also be in a blinking mode. Powered off is also a state but we will not need to program for that.
Create a program that is a class for a the Traffic light. See the Section Things to know this week.
This class needs methods to set the states for Red and Yellow and Green. It also needs a method to show the current state and
PayPal Gateway not configured
PayPal Gateway not configured