Joy of Programming: Liskov?s Substitution Principle
Feb 27, 2012, 22:00 (0 Talkback[s])
"Every computer science student who has taken a data structure
course knows that a stack is not a vector. A vector is just like an
array, only that it can grow in size. So we can insert or delete
elements from anywhere in the vector. However, stack is a LIFO
(Last In First Out) data structure: we can insert and remove only
from one end of the data structure.