Construct a class named light that simulates a traffic


Construct a class named Light that simulates a traffic light. The class's color attribute should change from Green to Yellow to Red and then back to Green by using the class's change() method. When a new Light object is created, its initial color should be Red

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Construct a class named light that simulates a traffic
Reference No:- TGS02192095

Expected delivery within 24 Hours