Interfaces in Java | The Abstraction through Interfaces | Multiple Inheritance in Java by Interface
An interface in Java is a blueprint of a class. It has static constants and abstract methods.
The interface in Java is a mechanism to achieve abstraction. There can be only abstract methods in the Java interface, not method body. It is used to achieve abstraction and multiple inheritance in Java.
In other words, you can say that interfaces can have abstract methods and variables. It cannot have a method body.
Link of this video note:
https://drive.google.com/file/d/1BbDJfA909gRJ3tMpMVytIEWgfTQIdQKI/view?usp=sharing
0:00 Interfaces
1:37 Similarity with classes
2:14 Diff with classes
5:49 properties
7:10 declare interfaces
9:20 inheriting interfaces
15:30 multiple inheritance with classes
17:00 multiple inheritance with interfaces
19:00 using online compiler
19:58 extending interfaces
24:30 overriding methods of interfaces
28:48 extending multiple interfaces
30:11 interface references
34:45 nested interfaces
39:00 interface inside class
Видео Interfaces in Java | The Abstraction through Interfaces | Multiple Inheritance in Java by Interface автора Java Разработчик
Видео Interfaces in Java | The Abstraction through Interfaces | Multiple Inheritance in Java by Interface автора Java Разработчик
Информация
5 декабря 2023 г. 13:05:22
00:42:13
Похожие видео