News for hackers. Stuff that matters.
Re:Inheritance Often Doesn't Make Sense by ozim on Saturday March 17, 2018 @06:43AM (#16606343)
To fix it in real world you make factory abstraction which you feed with initial data and then factory knows if it is rectangle to be produced or a square. So developer should not be concerned with cats or dogs, developer should be able to call Feed() method.

But we all know how this ended in Java.

There are no comments on this comment yet.