The main advantages of inheritance are code reusability and readability . When child class inherits the properties and functionality of parent class, we need not to write the same code again in child class. This makes it easier to reuse the code, makes us write the less code and the code becomes much more readable.
Read moreWhat are the advantages and disadvantages of inheritance in java?
Inheritance allows us to inherit all the properties of base class and can access all the functionality of inherited class . It implements reusability of code. DISADVANTAGES: Improper use of inheritance or less knowledge about it may lead to wrong solutions.10 Tem 2017
Read moreWhat are the advantages of inheritance in java explain multilevel inheritance?
Advantages of Inheritance Overriding: With the help of Inheritance, you can override the methods of the base class . Data Hiding: The base class in Inheritance decides which data to be kept private, such that the derived class will not be able to alter it.
Read more