为什么接口不属于继承链? [英] why Interfaces do not come in inheriting chain?

查看:83
本文介绍了为什么接口不属于继承链?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么接口不在继承链中?

why Interfaces do not come in inheriting chain?

推荐答案

实际上,它们确实存在.

—SA
In fact, they do.

—SA


大家好,在这里观看
以下是抽象和接口之间的区别:-
√抽象类可以有具体方法,而接口没有方法
已实现.
接口不属于继承链,而抽象类属于
继承.
这就是我问为什么的原因吗?
hello guys here watch
Following are the differences between abstract and interfaces :-
√ Abstract classes can have concrete methods while interfaces have no methods
implemented.
Interfaces do not come in inheriting chain , while abstract classes come in
inheritance.
that''s a reason i m asking why is it?


这篇关于为什么接口不属于继承链?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆