Introduction to OOP: Chapter 16 : A Case Study : The STL [next] [previous] [audio] [real] [text]

Generic Algorithms versus Encapsulation

Object-Oriented programming holds encapsulation as an ideal, bundling all actions in one place. Can make for ``fat'' classes.

The STL separates data structures and algorithms. The data structures are relatively small. The algorithms are many. Can be mixed and matched.

Allows for a much smaller class library.

Intro OOP, Chapter 16, Slide 3