📜  接口用作 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:34.947000             🧑  作者: Mango

代码示例1
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.