Question: Exercise 1 : Write a Java application that creates a Java console application to keep records of properties and displays stored record. Follow the following

Exercise 1:
Write a Java application that creates a Java console application to keep records of properties and displays stored record. Follow the following instructions to develop the application:
Create a class named Property with the following specifications:
5 instance variables that would store the following property data (Use recommended variable naming conventions and appropriate data type for each instance variable):
o Propertys id
o Propertys type
o Propertys address
o Date of build
o Number of bedrooms
o Number of bathrooms
Several constructors that would allow you to construct Property object with no arguments, 1 argument, 2 arguments, 3 arguments, 4 arguments, 5 arguments, and 6 arguments.
Create Setters and getters for all the instance variables of class Property. Make sure to have several setters that would allow you to set the values of individual instance variables of the property object. Also create one setter that would allow you to set all the values of the instance variables at once. Create several getters that would allow you to get the current individual values of each instance variables of the Property object.
Create the driver class that would create 2 Property (property1 and property2) objects, one with the help of the no argument constructor and one with the help of 6 argument constructor (pass whatever value you want to the variables in constructor). Display the default values of the instance variables of object property2.
Set the values of each instance variables for property1 with the help of setters. Display the values of both objects.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!