Can we have concrete methods in interface?
I'll answer
Earn 20 gold coins for an accepted answer.20
Earn 20 gold coins for an accepted answer.
40more
40more
Studied at the University of Edinburgh, Lives in Edinburgh, Scotland.
Basically, the rule says that you can inherit from (extend) as many classes as you want, but if you do, only one of those classes can contain concrete (implemented) methods. ... A class can extend at most one abstract class, but may implement many interfaces. That is, Java supports a limited form of multiple inheritance.May 24, 2011
2023-06-11 06:34:37
评论(499)
Helpful(122)
Helpful
Helpful(2)

Julian Morris
QuesHub.com delivers expert answers and knowledge to you.
Basically, the rule says that you can inherit from (extend) as many classes as you want, but if you do, only one of those classes can contain concrete (implemented) methods. ... A class can extend at most one abstract class, but may implement many interfaces. That is, Java supports a limited form of multiple inheritance.May 24, 2011