A simple circuit with two interconnected traffic lights with pedestrian crosswalk buttons. Object-oriented code encapsulates design concepts and enforces business rules such as safety constraints - no two traffic lights can be green at the same time.
Check out the code here: http://www.adhocalley.com/object-orie...