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.
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.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.