News for hackers. Stuff that matters.
Re:Goodbye, shitty "Car extends Vehicle" object-orientation ... by sjs on Monday August 22, 2011 @09:38PM (#2914966)
A common pattern is a superclass with "abstract" methods that subclasses then implement. So the `sendCommand(cmd)` function is implemented in HPDriver and CanonDriver and higher level methods in PrinterDriver can use that piece even though PrinterDriver itself has no implementation of that method.

There are no comments on this comment yet.