+ 1

Can anyone help me to understand difference between inheritance and interface?

I am confused in understanding inheritance & interface.

4th Nov 2020, 4:22 AM
Aayush Kumar
2 odpowiedzi
+ 3
Interface are abstract type in Java, it basically declares behaviours that must be implemented by the class which is inheriting from it. Inheritance is when a class extends another class or implements interface.
4th Nov 2020, 4:41 AM
Avinesh
Avinesh - avatar
0
Thank u
23rd Sep 2023, 6:12 PM
Aayush Kumar