Object-Oriented Programming

Homework 06 - Inheritance (cont.)

Question 1. Given class SinglyLinkedList as an implementation of singly-linked list data structure that provides basic list operations such as addFirst, removeFirst, addTail, removeTail, insertAfter.
Design 2 classes Stack and Queue that reuse the class SinglyLinkedList. Consider two options: composition and inheritance. Explain your choice.

Question 2. (Exx. 9.5, JH2P)

Question 3. (Exx. 9.6, JH2P)