3 ms·
When I learned OOP it was all about inheritance. Only later I realized that aggregation is much easier to handle and that functions that take well defined input
by maxxxxx 10y ago
When I learned OOP it was all about inheritance. Only later I realized that aggregation is much easier to handle and that functions that take well defined input and return a value without side effects are easier to maintain.
- jakub_h 10y agoIt's never been all about inheritance, they just forgot to tell that to Stroustrup and Gosling. ;)