Java Rabbit (@techRabbit8) profile picture

Java Developer || Interview guide

Joined August 2023
There are 5 types of inheritance.
1
3
4) Hybrid Inheritance : It is a combination of above types of inheritance.
1
3
5) Multiple Inheritance : One class extends more than one classes. (Java does not support multiple inheritance)
3
Inheritance is one of the key principle of object oriented programming.
1
3
Through inheritance, one class can inherit the properties of another class. The class from which properties are inherited is called super class and the class to which properties are inherited is called sub class.
11
What are the fundamental principles of object oriented programming? -> a) Inheritance b) Abstraction c) Polymorphism d) Encapsulation
3