Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Java image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts Of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

4th Edition

0619064625, 978-0619064624

More Books

Students also viewed these Databases questions