Java Rabbit (@techRabbit8) profile picture

Java Developer || Interview guide

Joined August 2023
There are 5 types of inheritance.
1
3
1) Single Inheritance : One class is extended by only one class.
1
1
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