Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How does an interface in Java work? #24

Open
imroniittt opened this issue Dec 18, 2022 · 0 comments
Open

How does an interface in Java work? #24

imroniittt opened this issue Dec 18, 2022 · 0 comments
Assignees

Comments

@imroniittt
Copy link

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant