Answered step by step
Verified Expert Solution
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
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: BooleanStep 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