Crio-Bytes / IBD-2022-Master-Repository

This is the master repository where you can publish your work.
6 stars 22 forks source link

How does an interface in Java work? #24

Open imroniittt opened 1 year ago

imroniittt commented 1 year ago

MicroByte Title: How does an interface in Java work?

Domain: Connection between a different service provider and client using it.

Scope of learning for learners: Learners will get an idea about the different Service provider that how they make a interface connection with the Client using their Service and helps the main framework of applications.

Activities:

  1. It is used to achieve total abstraction.
  2. Since java does not support multiple inheritances in the case of class, by using an interface it can achieve multiple inheritances.
  3. Any class can extend only 1 class but can any class implement infinite number of interface. It is also used to achieve loose coupling.