Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
sethg
on Aug 23, 2011
|
parent
|
context
|
favorite
| on:
Goodbye, shitty "Car extends Vehicle" object-orien...
Different printer models could have different features (color/B&W, selecting output tray, “print” an outgoing fax, etc.), and you could make each PrinterDriver subclass responsible for generating the appropriate UI code for frobbing those features.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: