1.What is inheritance ?
Inheritance is a fundamental concept in object-oriented programming (OOP) where one class (child/subclass)
acquires the properties and behaviors (fields and methods) of another class (parent/superclass).
2.Why used inheritance ?
Helps organize classes logically.
Makes code reusable and easy to maintain.
Shows which classes share common features
3.How to achieve inheritance ?
Using extends keyword
4.How many type of inheritance ?
FIVE
5.What are the types of inheritance ?
1.Single Inheritance
2.Multiple Inheritance
3.Hierarchial Inheritance
4.Mutilevel Inheritance
5.Hybrid Inheritance
6.Which inheritance not supported in java ?
Multiple inheritance is not supported by java using class.
7.What java keyword you used to achieve inheritance ?
Using extends keyword
Top comments (0)