Question: 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

 Start from the class model of Assignment 2. Q1: Owners can

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!