---

Joy of Programming: Liskov?s Substitution Principle

“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.


Complete Story

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis