Your solutions will be graded on the bassis of originality, completeness, and compliance to the object oriented programming concepts. No Java code is required for this section.
Question 1: Assume you are required to write an object oriented program for purchasing household items for a new house. Identify at least five classes of household items such as decoration items, washroom items etc. Each of these classes must have at least two types of items. Draw a UML class diagram identifying the instance variables and methods of each class and the relationships (inheritance, composition) between the classes, if any. Each class must implement a method for calculating the cost incurred on each item. The cost might include the purchase price of the item, and shipping cost. Each class of household items and its types must have some differentiating features (instance variables) from the other classes, alongwith the common details. Some items might have installation charges, service charges, interior designing charges, insurance, or plumbing cost etc, depending on the type of the item. Electronic items might come with a warranty. …… (Read instructions for all the questions before you draw your diagram)
Get Answers For Free
Most questions answered within 1 hours.