Free Response Question: Manage the Sign Boards
Explore how to apply polymorphism in Java to create and manage various traffic sign classes. This lesson guides you through designing a class hierarchy with proper constructors and methods to represent sign names and codes, enhancing your coding skills and understanding of object-oriented principles for real-world applications.
We'll cover the following...
We'll cover the following...
Background
Signs displayed at the side of or above roads to give instructions or provide information to road users are called sign boards. They have several types:
- Danger signs
- Priority signs
- Guide signs
In this challenge, you’re required to create a maintenance program that keeps the information about traffic signs.
The requirements are as follows: