Search for question
Question

Define an abstract class called Seat. A seat will have the following attributes:

*color(String-private)

*reclines(boolean-private)

*width (float-private)

* height(float-private)

Seat must have a default constructor which sets color to black, reclines to false, width to 17 And height to 18.

Seat also must have an overloaded constructor which takes in the 4 attributes and sets them.

Seat should have getters for all four attributes.No setters are necessary.