Code a java a class named building and two subclasses


Problem

Code a JAVA a class named Building; and two subclasses: House and School. The Building class contains fields (attributes) for square footage and stories. The House class contains additional fields for number of bedrooms and baths. The School class contains additional fields for the number of classrooms and grade level (for example, primary or junior high).

All the classes contain appropriate getter and setter methods.

Place the Building, House, and School classes in a package named com.buildings.course.

Create an application that instantiate objects of each type and uses the package.

 

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Code a java a class named building and two subclasses
Reference No:- TGS03242060

Expected delivery within 24 Hours