Answered step by step
Verified Expert Solution
Link Copied!

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)

image text in transcribed

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): int

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

Step: 3

blur-text-image

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

Database Design And Implementation

Authors: Edward Sciore

2nd Edition

3030338355, 978-3030338350

More Books

Students also viewed these Databases questions

Question

Provide examples of Dimensional Tables.

Answered: 1 week ago