Can a class in Java implement more than one interfaces, if yes what is the syntax used?
Answers
Answered by
1
Answer:
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.
I hope it is helpful!
Similar questions
Computer Science,
2 months ago
English,
2 months ago
Hindi,
2 months ago
Music,
5 months ago
English,
5 months ago
Math,
11 months ago
Science,
11 months ago
Social Sciences,
11 months ago