Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Week 1 - Add and test subclasses: - a Stadium can be: Output: - public - new Attribute: Stadiums: Stadium Rashid is Public in Dubai
Week 1 - Add and test subclasses: - a Stadium can be: Output: - public - new Attribute: Stadiums: Stadium Rashid is Public in Dubai with 12000 seats. - private - new Attribute: - Directed by: Daman - numinvestors Stadium Zayed is Private in Abu Dhabi with 44000 seats. - Owned by: 5 investors. - a Person can be a: - Player Output: o new Attributes: - numGoals - numAssists Players: - new Behavior: Paul is a Player 21 years old and earns 100 per month. - Rating() - has 3 goals and 1 assists and rating 7 - = (numGoals * 2)+ numAssists Peter is a Player 22 years old and earns 200 per month. - e.g. for 3 goals and 1 assist, - has 4 goals and 2 assists and rating 10 - Manager o new Attribute: Managers: - travelExpenses - new Behavior: Mary is a Manager 30 years old and earns 1000 per month. - totallncome() - gets 600 for travel so 1600 total. Martha is a Manager 35 years old and earns 2000 per month. - gets 600 for travel so 2600 total. Teams: Team Tigers plays in Tokyo and is managed by Mary Team Titans plays in Tehran and is managed by Martha
Step 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