Java inheritance

后端 未结 6 1120
旧巷少年郎
旧巷少年郎 2020-12-22 06:09

Why we can not extend more than one class in java? can anyone clearify this point please.

6条回答
  •  滥情空心
    2020-12-22 06:45

    Long story in short,

    That's why we need interfaces for. Combining interfaces together is better than an over-weight base class.

提交回复
热议问题