Advantages of Inheritance
Get to know about the advantages of using Inheritance.
We'll cover the following
Reusability
Inheritance makes the code reusable. Consider that you are up for designing a banking system using classes. Your model might have these:
- A parent class:
BankAccount
- A child class:
SavingsAccount
- Another child class:
CheckingAccount
Get hands-on with 1200+ tech skills courses.