Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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: