Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Q1. Which class is the best candidate to be made into an abstract class? Q2. Why is that class (in your answer to Q2 A)
Q1. Which class is the best candidate to be made into an abstract class?
Q2. Why is that class (in your answer to Q2 A) suited to being made an abstract class?
We are writing a system that could be used by a Real Estate Agency, to represent the properties that are available for purchase, or for renting. The following class diagram shows the domain classes required for the system: dass Real Estate Agency House Owner address: String suburb: String bedrooms int bathrooms: int carSpaces: int thouses 1 name: String phone: long Owner(string, long) + addHouseHouse): void + petNamel): Strine + getPhonel): long + getHousefint): vold + listAll Houses(: void + House(String String, int, int, int getAddress): String + getsuburb(): String + DetBedrooms(); int getBathrooms(); int getCarSpaces(); int House For Sale House For Rent pricelow int priceHigh: int + HouseForSale/String String, int, int, int, int,int) petPricelow:int getPrice High(); int weeklylentint available FromDate: String House For Rent|Strine, String, int, int, int, int, String) getAvailableFromDatel). String get WeeklyRent): intStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started