Can a normal Class implement multiple interfaces?

后端 未结 8 1150
春和景丽
春和景丽 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:22

    Of course... Almost all classes implements several interfaces. On any page of java documentation on Oracle you have a subsection named "All implemented interfaces".

    Here an example of the Date class.

提交回复
热议问题