2 ms·
> What if you have a function that only knows how to operate on squares? Forcing it to accept Rectangles will be unnatural then you write another function that
by jcelerier 9y ago
> What if you have a function that only knows how to operate on squares? Forcing it to accept Rectangles will be unnatural
then you write another function that does what you want with rectangles. I think that most of the problems with inheritance stem from unnatural obsession for code reuse such as this.