What is the use of interface?

What is the use of interface?
Answer
Why do we use interface ? It is
used to achieve total abstraction. Since java does not support multiple inheritance in case of class, but by using interface it can achieve multiple inheritance . It is also used to achieve loose coupling.
 

Tìm kiếm

Back
Top