Can a normal Class implement multiple interfaces?

后端 未结 8 1064
春和景丽
春和景丽 2021-01-31 01:34

I know that multiple inheritances between Interfaces is possible, e.g.:

public interface C extends A,B {...} //Where A, B and C are Interfaces

8条回答
  •  -上瘾入骨i
    2021-01-31 02:38

    Yes, it is possible. This is the catch: java does not support multiple inheritance, i.e. class cannot extend more than one class. However class can implement multiple interfaces.

提交回复
热议问题