Question: building.java : Problem Statement (Summary): You are going to develop a simple application for Hotels. Hotel is, actually, a Building, with some extra features. Each

building.java :

Problem Statement (Summary): You are going to develop a simple application for Hotels. Hotel is, actually, a Building, with some extra features. Each hotel as a couple of rooms. Each room, has some features, including its own calendar, to keep its reservation records. To implement and test this system, you must create six Java classes as follows: Class Building (4 marks): Open the Java file Building.java that is provided. Complete this Java class using the following specifications: Every building has year of built and number of floors. (1 mark) A default constructor, which initializes the year of built to the current year, and floor to 1. Note that current year must not be hard coded, like 2021. (2 marks) Another constructor with two parameters, year of built and floor, which initializes the corresponding instance variables. (1 mark) public class Building { }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
