Create a Building class and two subclasses, House and School. The Building class contains fields for square

Question:

Create a Building class and two subclasses, House and School. The Building class contains fields for square footage and stories. The House class contains additional fields for number of bedrooms and baths. The School class contains additional fields for number of classrooms and grade level (for example, elementary or junior high). All the classes contain appropriate get and set methods. Place the Building, House, and School classes in a package named com.course.buildings. Create an application that declares objects of each type and uses the package. Save the necessary files as Building.java, House.java, School.java, and CreateBuildings.java.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: