QuesHub > > > > ASK DETAIL

Can we have concrete methods in interface?

Mia Davis | 2023-06-09 06:34:37 | page views:1908
I'll answer
Earn 20 gold coins for an accepted answer.20 Earn 20 gold coins for an accepted answer.
40more

Zoe Mitchell

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

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
ask:3,asku:1,askr:137,askz:21,askd:152,RedisW:0askR:3,askD:0 mz:hit,askU:0,askT:0askA:4