Question: Java Create an abstract class RealEstate. then Create two sub classes: Resident and Lands For the Resident, create two subclasses: House and Flat For the
Create an abstract class RealEstate. then Create two sub classes: Resident and Lands For the Resident, create two subclasses: House and Flat For the Land, create two subclasses: vInvestment and Agriculture Resident Land For The abstract class RealEstate, it should have the following instant variables: A variable to store view of type String A variable to store the area of type double A variable to store price per meter. RealEstate should have the following abstract methods calculatePrice that will calculate the final price of the realEstate Resident and Land should implement the abstract methods of RealEstate. Also they have the set and get for every instant variables. Resident has the following instant variables: A variable to store age of type integer. A variable to store number of rooms of type integer A variable to store number of balconies of type integer. Land has the following instant variables: A variable to store road availability of type Boolean. A variable to store water availability of type Boolean A variable to store percentage of allowed buildings of type double. Write a required set and get functions for al instant
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
