Interfaces in Java

preview_player
Показать описание
In this tutorial, we will discuss interfaces in Java.

Healthy diet is very important both for the body and mind. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking our YouTube channel. Hope you can help.

Interfaces
- refer to specific behavior or trait
- declares a fixed set of methods
- all implementing classes must define them
- used to refer multiple related or unrelated objects
- think of it as a contract that is to be adhered to

Features of interfaces in java

- Establishes the expected behavior
- Promotes flexibility in design
- Makes application more manageable
- Java 8 interfaces allow default and static methods in interfaces

Notes:

- A class can inherit from single base class
- A class can implement any number of interfaces
- An Interface can extend another interface
- An interface cannot define constructors like class

- Establishes the expected behavior
- Promotes flexibility in design
- Makes application more manageable
- Post Java 8
- Add more methods without breaking the existing implementations
- Provision for default methods
- Provision for static methods
Рекомендации по теме
Комментарии
Автор

Deepak Sir I am learning java from your tutorials and they are really helpful. Kindly upload more videos of this series

nikhilsaxena
Автор

Slightly good explanation of interfaces than kud

santoshbhagawat-bomblekar
Автор

Sir Kindly Make the videos on Encapsulation

ankitgaur
Автор

Is this tutorial going to be continued..

maruatajongte
welcome to shbcf.ru