TE
TechEcho
Home
24h Top
Newest
Best
Ask
Show
Jobs
English
GitHub
Twitter
Home
Limits of programming by interface
3 points
by
nfrankel
over 6 years ago
1 comment
karmakaze
over 6 years ago
Article misses the obvious solution name the interface for its contract. e.g. SortedMap can have the exact same methods as Map but has an additional bahavoural contract. TreeMap may be a concrete implementation but using the interface is preferable.