3 ms·
> In 10 years as a professional developer I have only ever implemented something using inheritance once. If you build a library or framework, you'll use it mor
by wvenable 6y ago
> In 10 years as a professional developer I have only ever implemented something using inheritance once.
If you build a library or framework, you'll use it more. There are often plenty of literal "is-a" relationships that don't exist as often in application code. So you probably benefit from inheritance in OOP quite a bit even if you aren't building those relationships yourself.
- dktoao 6y agoAnd now that I think of it, what I was building was a data visualization framework that users could create "plugins" for to handle many disparate types of data. So yeah, frameworks are a great example of cases where inheritance shines, but is rather niche and not many people work on them day to day.