Three Wrappers, Three Reasons

The hub now has three kinds of class that look the same on paper, each holding one object and passing calls on: TuneoSpeakerAdapter, CachedWeather and GuardedLock. What each is for tells them apart (a new shape, a new feature, or control of the way in), and that decides where the next rule belongs.

By

Updated

Cheat sheet: Three Wrappers, Three Reasons
Category
Data Structures
Level
Journeyman
Tags
Adapter Pattern, Decorator Pattern, OOP, Proxy Pattern