Re:Paul Graham on Spaghetti Code
by timr on Friday April 19, 2013 @12:25AM
(#5574811)
The "elders" never said that. They invented inheritance because there was a need for it.
Inheritance is a great way to maintain encapsulation in the face of a messy world. Unchecked composition quickly gets you to a world where everything has to be public anyway.
Inheritance is a great way to maintain encapsulation in the face of a messy world. Unchecked composition quickly gets you to a world where everything has to be public anyway.