Problem Set #2: Java Class Design
During this prefect session, we will try to design some classes from bottom-up.
Roomclass. Suppose we only knew very few characteristics of a
Roomsuch as how many people live there, if it's a single or double, and so on. Write the code for this
Roomclass and "test" this class by instanting some
Roomobjects and printing some pretty information about each
Next, design a
Floorclass. Suppose a
Floorholds a specific number of rooms. Think about other information a
Floorcan store. Write some "test" code for the
Finally, write a
Buildingconsists of a certain number of floors.