Languages

Java - interface extends multiple interfaces

2 points
Asked by:
Broncono
466

Can single interface extends multiple interfaces in java?

Is there a way that C extends A and B?

1 answer
1 points
Answered by:
Root-ssh
178180

Yes, we just need to use extends keyword, separating parent interfaces using comma separator.

Example:

 

0 commentsAdd comment
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join