本文介绍了什么是界面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
参考UML图,什么是界面?有人可以用更简单的词来解释。我无法通过Google搜索来理解任何内容。
With reference to UML diagrams, what is an interface? and can someone explain in more simpler words. I cant understand anything from googling it.
推荐答案
接口就像一个不包含数据或实现的类的模板设计;只有方法,属性等的定义。这些是抽象的,不能实例化,但可以继承,此时所有指定的方法等必须由继承接口的具体类实现。
An interface is like a template design for a class that contains no data or implemetnation; only definitions for methods, properties etc. These are abstract and cannot be instantiated but can be inherited from at which point all specified methods etc must be implemented by the concrete class inheriting the interface.
这篇关于什么是界面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!