Can an abstract class implement an interface in Java?
I'll answer
Earn 20 gold coins for an accepted answer.20
Earn 20 gold coins for an accepted answer.
40more
40more
Works at the International Organization for Migration, Lives in Geneva, Switzerland.
In Java, an abstract class can implement an interface, and not provide implementations of all of the interface's methods. It is the responsibility of the first concrete class that has that abstract class as an ancestor to implement all of the methods in the interface.
2023-06-10 06:42:40
评论(499)
Helpful(122)
Helpful
Helpful(2)

Isabella Lewis
QuesHub.com delivers expert answers and knowledge to you.
In Java, an abstract class can implement an interface, and not provide implementations of all of the interface's methods. It is the responsibility of the first concrete class that has that abstract class as an ancestor to implement all of the methods in the interface.