The street intersection

Report a typo

We have ADT of colors for traffic lights:

enum TrafficLight:
  case Red, Yellow, Green

We also have a class describing one side of the intersection on the road:

case class CrossingSide(forCars: TrafficLight, forPeople: TrafficLight)

How many unique values can a variable with the CrossingSide type have?

Enter a number
___

Create a free account to access the full topic