Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
st3fan
on July 7, 2008
|
parent
|
context
|
favorite
| on:
No, inheritance is not the way to achieve code reu...
Yeah. I think Apple's Cocoa framework is a good example. Instead of inheritance you use delegates to modify class behaviour. Subclassing is 100% possible but not very often required because of the delegate pattern.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: