Question: (A). Draw a class inheritance hierarchy (using generalization) that could be used to instantiate the object. Show three levels (including the root) of abstraction. NOTE:
(A). Draw a class inheritance hierarchy (using generalization) that could be used to instantiate the object. Show three levels (including the root) of abstraction. NOTE: VENDING MACHINE (OR DVD RENTAL MACHINE OR SELF-SERVICE KIOSK) DOES NOT HAVE TO BE THE ROOT CLASS BUT IT MUST BE SOMEWHERE IN THE MODEL.
(B). Pick one class on the above diagram (YOUR CHOICE) and create a whole-part (aggregation) hierarchy. Again, show three levels of abstraction (including the root).
(C) Next, add attributes to the hierarchy of (A) at each level created. Show at least one attribute for each LEVEL (not class) in the hierarchy. You can add these to your diagram for (A) but be sure to use a different notation and/or label them accordingly.
(D) Next, add methods to the hierarchy of (A) at each level created. You need at least one method for each LEVEL (not class) in the hierarchy. You can add these to your diagram for (A) but be sure to use a different notation and/or label them accordingly (e.g., by appending ( )s to indicate methods).
(E) Add one instance (using classification) to the hierarchy, using a different notation and/or label it accordingly. Explicitly show what that instance has inherited from more abstract levels.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
