Introduction to OOP
Chapter 19: Container Classes :
next
previous
audio
real
text
Chapter Summary
Collection Classes are easy to write in dynamically typed languages
In statically typed languages, there is a conflict between reuse and strong typing
Three approaches to overcoming this include
Using substitution and downcasting
Using substitution and overriding
Using generics
A related problem, looping over elements
The iterator solution
The visitor solution
Intro OOP,
Chapter 19
, Slide 20