Determine the proper relationship between the following


Question: Determine the proper relationship between the following classes. That is, which ones should be subclasses of others and which should be composed of others? You may add extra classes or interfaces (for example, a common superclass or interface of two of the classes) if you feel they will help clarify the relationship. Explain your reasoning. a. Boat, Boat House, House, House Boat, Garage, Car b. US Money (with dollars and cents attributes) and Money (with an attribute indicating the kind of currency as well as the amount) c. Class1 and Class2, where both classes have methods with headers "public Object get()" and "public void put(Object o)." In Class1, the get and put methods behave like a stack's pop and push methods with LIFO behavior, and in Class2, the get and put methods behave like a queue's dequeue and enqueue methods with FIFO behavior.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Determine the proper relationship between the following
Reference No:- TGS02578136

Expected delivery within 24 Hours