First page Back Continue Last page Overview Graphics
Principles of API Design
APIs are written by experts for non-experts
It's the class's responsibility to enforce its class invariants
Do not allow clients to do bad things.
Hide as much of the implementation as possible.
Design for subclassing or prohibit it