Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please create a UML diagram that contains: 1. A House class. 2. Classes for each room in the house. ex: Bathroom. You must have at

Please create a UML diagram that contains:

1. A House class.

2. Classes for each room in the house. ex: Bathroom. You must have at least 4 different rooms.

3. A Room class which would be the superclass to the individual rooms such as Bathroom.

4. A Floor class that represents each floor of the house (ex. a three-floor house would have a top floor, a main floor, and basement).

5. Create reasonable associations and inheritance relationships between all the classes.

6. At least 4 attributes specific to the House class.

7. At least 3 attributes specific to the Room class.

8. At least 3 attributes specific to the Floor class.

9. At least 2 attributes specific to only Bathroom, etc. (for each of the individual rooms).

10. At least 3 methods specific to the House class. At least one method can not be a setter/getter method.

11. At least 2 methods specific to the Room class (and thus inherited by Bathroom, etc). At least one method can not be a setter/getter method.

12. At least 2 methods specific to the Floor class. At least one method can not be a setter/getter method.

13. At least 1 method specific to each of the specific rooms (i.e: Bathroom, etc.). At least one method can not be a setter/getter method.

14. Pick ONE specific room (ex: Bathroom) and override ONE method that was inheritted from the Room class. Note in Part III you'll have to document the functionality of each method so you will have to show/explain why you overrode the method that you did (i.e: what functionality does the overridden method provide that was better suited to the specific room than what the inherited method would have provided); or in other words ask yourself "why did I replace the inherited function with this one?".

(please include uml diagram of this question)

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_2

Step: 3

blur-text-image_3

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

Professional SQL Server 2000 Database Design

Authors: Louis Davidson

1st Edition

1861004761, 978-1861004765

More Books

Students also viewed these Databases questions