Can you implement more than one interface Java?
I'll answer
Earn 20 gold coins for an accepted answer.20
Earn 20 gold coins for an accepted answer.
40more
40more
Studied at University of Oxford, Lives in Oxford, UK
A Java class can only extend one parent class. Multiple inheritance ( extends ) is not allowed. Interfaces are not classes, however, and a class can implement more than one interface. The parent interfaces are declared in a comma-separated list, after the implements keyword.Jan 22, 2014
2023-06-10 06:42:35
评论(499)
Helpful(122)
Helpful
Helpful(2)

Ava Roberts
QuesHub.com delivers expert answers and knowledge to you.
A Java class can only extend one parent class. Multiple inheritance ( extends ) is not allowed. Interfaces are not classes, however, and a class can implement more than one interface. The parent interfaces are declared in a comma-separated list, after the implements keyword.Jan 22, 2014