Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Your application must demonstrate the following concepts: Inheritance Composition Polymorphism Abstract Classes Use of Constructors Use of Access Specifiers Text File Data Storage/Retrieval Incorporate the
Your application must demonstrate the following concepts:
- Inheritance
- Composition
- Polymorphism
- Abstract Classes
- Use of Constructors
- Use of Access Specifiers
- Text File Data Storage/Retrieval
Incorporate the following requirements into your application:
- For all classes provide the following
- Documentation at the top of the class file that includes
- Your name
- Date of development
- Assignment (e.g., CIS317 Final Practical)
- Description of the class
- Documentation within the class that indicates which of the concepts listed above are being demonstrated
- Documentation at the top of the class file that includes
- Implement the classes as shown in the UML diagram below.
Door -Width: int -Color: string Building -Building Type: string #Building(string type): Building +GetRooms(): int +ToString(): string House inheritance -NumRooms: int - FrontDoor: Door -Mainkitchen: Kitchen +House (int num Rooms, Door frontDoor, Kitchen mainKitchen): House +GetRooms: int +ToString(): string +Door(int width, string color): Door +ToString(): string Kitchen -Style: string -ApplianceBrand: string + Kitchen(string style, string appliance Brand): Kitchen +ToString(): string
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