3 ms·
I can hear the die-hards screaming already about encapsulation, inheritance and polymorphism. Any die-hards screaming about all 3 of those should be viewed wit
by stcredzero 15y ago
I can hear the die-hards screaming already about encapsulation, inheritance and polymorphism.
Any die-hards screaming about all 3 of those should be viewed with a bit of skepticism. When I talked about this a lot, folks were "meh" about inheritance, especially class-based inheritance. The only thing I see as being worthy of die-hard adherence is polymorphism. Encapsulation is there to help enable polymorphism. I'll note that the degree of encapsulation varies amongst systems that call themselves OO.