First page Back Continue Last page Overview Graphics
Motivation -- Approach 1:
Direct access, no encapsulation
- Pro: Simple, familiar, easy to understand
- Con: No encapsulation of data structure to
prevent corruption
- Con: Different client code for different
data structures
- Con: Can’t change data structure without
re-coding client