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

I find the `Printer + Scanner ~= Copier` example poorly designed.

Sure, the Copier has both Printer and Scanner, however, in practice, the "Start" function on a Copier differ from either -- it starts the scanner and forwards it to the printer. It might also print multiple copies.

Point being, the `start` functionality here differ from both Printer and Scanner hence, the `start` method shouldn't be inherited.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: