2 ms·
I rarely write my own class and then use that as a parent of a new class. But I very frequently write a class that inherits from a parent class when I use a fra
by japhyr 6y ago
I rarely write my own class and then use that as a parent of a new class. But I very frequently write a class that inherits from a parent class when I use a framework.
When I teach inheritance to students, it’s not usually with the mindset that “You’ll use inheritance a lot in the original code you write.” The mindset I teach with is, “You’ll see inheritance often in the codebases you work with.”