June 28, 2015
5 p.m.
On 28 Jun 2015, at 17:59, Max Leske <maxleske@gmail.com> wrote:
On 28 Jun 2015, at 17:22, stepharo <stepharo@free.fr> wrote:
Hi guys
is there a real reason for Stack being a subclass of LinkedLink?
1. You donât need to adjust an internal data structure (grow, shrink, move, sort) to update the stack but only move references. 2. The interface is pretty similar
3. It is an implementation detail/technique, it is indeed not as if Stack is-a LinkedList (from that point of view it is confusing)
Stef