Can a normal Class implement multiple interfaces?

后端 未结 8 1072
春和景丽
春和景丽 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条回答
  •  攒了一身酷
    2021-01-31 02:28

    public class A implements C,D {...} valid

    this is the way to implement multiple inheritence in java

提交回复
热议问题