Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Start from the class model of Assignment 2. Q1: Owners can buy houses or work as agents, Agents can rent apartments and sell their own

image text in transcribed

Start from the class model of Assignment 2.

Q1: Owners can buy houses or work as agents, Agents can rent apartments and sell their own properties, In other words, these are roles. Add a pattern to let Persons have different roles.

Person name: String SSN: Integer address: String Q2: (Argo) Owner Client Agent cilentinfo String agency: String ntract0hckCredito iBid(amount:Integer) getyBidso settyBids0 Contract Bid date: Integer amount: Integer property: Property date: Integer offer Integer whenNeeded: Integer getCliento setClient0 1 verifyo signo getPropertyO Property location: String availability: Boolean rentorSell: Boolean PropertyDescription inChargeor size: Integer 0. bid(amount: Integer) rent(cost: Integer) buytprice:Integer) signLease(signature: String) signContract(signature: String) Residential Commercial noBedrooms: Integer noBaths:Integer noBuildings: Integer use: Integer House Apartment Land Building integer integer isDeveloped: Boolean hasinternet:Boolean pool: Boolean

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

More Books

Students also viewed these Databases questions

Question

=+ b. What is the per-worker production function, y = f(k)?

Answered: 1 week ago