女人下面有异味是什么原因| 省油的灯是什么意思| 口舌麻木吃什么药| 104是什么意思| 胃肠道功能紊乱吃什么药| 衣冠禽兽指什么生肖| 溺爱的意思是什么| 抗日战争什么时候开始的| 最大的沙漠是什么沙漠| 10月15日什么星座| 梦见流水是什么征兆| 奥肯能胶囊是什么药| 出虚汗是什么原因| 平日是什么意思| 祝福是什么意思| 乳头经常痒是什么原因| 补气血吃什么药效果好| 鸡肉煲汤加搭配什么好| 葡萄糖输液有什么作用| 熟的反义词是什么| 电话停机是什么意思| 昀是什么意思| 体检挂什么科| 检查糖尿病挂什么科| 6月26什么星座| 夏天可以做什么| 技师是干什么的| 结账是什么意思| 老是掉发是什么原因| 不打破伤风针会有什么后果| 林深时见鹿什么意思| 自助餐是什么意思| 鼻子出血是什么原因| 痰盂是什么意思| 帕斯是什么意思| 梦到被蛇咬是什么意思周公解梦| 中国的国菜是什么| 爱拍马屁的动物是什么生肖| baron是什么意思| 焦虑症吃什么药最好| 荷叶有什么功效| 肚脐眼左边疼是什么原因| 因地制宜是什么意思| 羊肉馅饺子放什么菜| 皮肤痒用什么药膏| 天冬与麦冬有什么区别| 易烊千玺原名叫什么| creative是什么意思| 家里放什么最招财| 什么是it行业| 屁的成分是什么气体| 什么流砥柱| 牛肉配什么菜好吃| 味精和鸡精有什么区别| 增加白细胞吃什么食物最好| 日柱灾煞是什么意思| 这个字叫什么| 钠高是什么原因| 屁股生疮是什么原因| 右眼皮跳是什么预兆| 蜱虫用什么药可以消灭| 通宵是什么意思| 朱顶红什么时候剪叶子| 胆管结石用什么药能把它除掉| 花生什么时候种| 西洋参吃多了有什么副作用| 血压低吃什么| 女人吃什么最补子宫| 为什么会晕3d| 杺字五行属什么| venes保温杯是什么品牌| 什么样的情况下会怀孕| 数不胜数的胜是什么意思| 做梦梦见蛇是什么征兆| 72年属什么生肖属相| 茶叶含有什么成分| 右手抖是什么病的预兆| 出阁是什么意思| 仪态万方是什么意思| 夜明珠代表什么生肖| 7月16日是什么星座| 上午9点是什么时辰| 高就什么意思| 仔字五行属什么| 头晕挂什么科室| 1994年出生属什么| 白天嗜睡是什么原因| 粟是什么农作物| 千金是什么生肖| 闭经和绝经有什么区别| 过氧化氢浓度阳性是什么意思| 为什么脸上老长痘痘| 1926年属什么| 水猴子长什么样子| 针眼用什么药| 吃中药忌口都忌什么| 什么什么望外| ybb是什么意思| 结婚前一天晚上的宴会叫什么| 三尖瓣反流是什么意思| 女生自慰什么感觉| 酉时左眼跳是什么预兆| 猎奇是什么意思| 双龙是什么意思| 睡着后抽搐抖动是什么| 心率过高是什么原因| 指奸是什么意思| 莲花代表什么生肖| 呼吸快是什么原因| 吃什么祛痰化痰最有效| 舌尖红是什么原因| 法令纹用什么填充效果最好| 减持是什么意思| 枧水是什么| 地素女装属于什么档次| 庶子什么意思| vr间隙是什么意思| kappa是什么牌子| 双鱼男喜欢什么样的女生| 粉色裤子配什么上衣| 吴优为什么叫大胸姐| 48年属什么生肖| 肚子响是什么原因| 濯清涟而不妖的濯是什么意思| beer是什么意思| 胀气吃什么药| 赞字五行属什么| 鱿鱼和什么炒好吃| 尿蛋白阳性是什么意思| 高血压吃什么水果| 去疤痕挂什么科| 梦见猫咬我是什么意思| olay是什么品牌| 哇咔咔是什么意思| 2024是什么年生肖| 农历9月14日是什么星座| 鸣字五行属什么| 5点是什么时辰| 湿气重能吃什么水果| 梦见别人装修房子是什么预兆| rfc是什么意思| 为什么叫北洋政府| 胳膊肘往外拐是什么意思| o型血和b型血生的孩子是什么血型| 补给是什么意思| 寿司醋可以用什么代替| 骨科是什么梗| 霖字五行属什么| 什么的枫树| 困惑什么意思| 非洲讲什么语言| 浅绿色配什么颜色好看| 什么情况需要打破伤风针| 不什么下什么的成语| 肠胃炎饮食要注意什么| 楔形是什么形状| 摘帽是什么意思| 空调外机很响是什么原因| 痛经什么感觉| 中度肠化是什么意思| 四眼狗有什么迷信说法| 鼻窦炎有什么症状表现| 杀青是什么意思| ppi下降意味着什么| 血糖高吃什么能降糖| 胃疼胃胀吃什么药好| rsp是什么意思| epd是什么意思| 头孢喝酒有什么反应| 脂肪有什么作用| 蜻蜓吃什么| 丁二醇是什么| 什么是共情| 霉菌感染用什么药好| 什么桥下没有水| 排暖期是什么时候| 四眼狗有什么迷信说法| 血小板低是什么症状| 有眼屎是什么原因| 鸡属于什么类动物| 2035年属什么生肖| 精不液化是什么原因导致的| 什么是中国舞| 碧根果和核桃有什么区别| 调御丈夫是什么意思| 怀二胎初期有什么症状| 冰酒是什么酒| 7月6日是什么星座| 院感是什么意思| 香皂和肥皂有什么区别| 孕妇肾积水是什么原因引起的| 乌鸡白凤丸适合什么人吃| 肺炎能吃什么水果| aimee是什么意思| 无创什么时候做| 甲醇对人体有什么伤害| 12月13日是什么纪念日| 泥鳅喜欢吃什么| 为什么夏天吃姜好| 乳酸脱氢酶偏低是什么意思| 女人喝什么茶好减肥| 原则性问题是什么意思| 下雨天适合穿什么衣服| 什么是宫缩| 巳是什么意思| 绝对值什么意思| 眼皮跳挂什么科| 低血糖有什么症状| 紫菜和海苔有什么区别| 倒签是什么意思| 什么丰富| 为什么心会痛| 什么叫入伏| 盆腔炎吃什么药好得快| 血管炎是什么症状| 只要睡觉就做梦是什么原因| 男性粘液丝高什么原因| 沦落什么意思| 十一月二十二是什么星座| 潘驴邓小闲什么意思| 什么生意好做又赚钱| 父亲ab型母亲o型孩子什么血型| 铁皮石斛治什么病| 坐月子能吃什么蔬菜| 迪拜为什么那么有钱| 什么人不能吃榴莲| 频繁感冒是什么原因| 蛋白高是什么原因| 白头发吃什么变黑| 新农合是什么| 土猪肉和普通猪肉有什么分别| 内透声差是什么意思| 头皮脂溢性皮炎用什么洗发水| 丹参粉有什么作用和功效| 艳阳高照是什么生肖| 血压高呕吐是什么征兆| 刘三姐是什么生肖| 相得益彰什么意思| 限期使用日期是什么意思| 额头出油多是什么原因| 水可以变成什么| 脚肿了是什么原因| 一笑泯恩仇什么意思| 煮海带放什么容易烂| 军校是干什么的| 甲钴胺的副作用是什么| 土鳖吃什么| 甲减是什么原因引起的| 赵丽颖的真名叫什么| 灰猫是什么品种| 青储是什么| 西四命是什么意思| 狗能吃什么水果| 吃brunch是什么意思啊| 什么原因会引起胎停| 2019年是什么生肖| 副师级是什么军衔| 6月5号什么星座| 嘴唇是紫色的是什么原因| 宫颈病变是什么原因引起的| 什么药可以缩阴紧致| 孕妇红细胞偏低是什么原因| 大便带血丝是什么原因| 1931年属相是什么| 百度

宝珀BATHYSCAPHE CHRONOGRAPHE FLYBACK系列手表

百度 第九条资格考试合格者,由人事部、建设部、水利部委托省、自治区、直辖市人民政府人事行政部门,颁发人事部统一印制,人事部、建设部和水利部用印的《中华人民共和国注册土木工程师(水利水电工程)资格证书》。

In computing, an interface is a shared boundary across which two or more separate components of a computer system exchange information. The exchange can be between software, computer hardware, peripheral devices, humans, and combinations of these.[1] Some computer hardware devices, such as a touchscreen, can both send and receive data through the interface, while others such as a mouse or microphone may only provide an interface to send data to a given system.[2]

Hardware interfaces

edit
 
Hardware interfaces of a laptop computer: Ethernet network socket (center), to the left a part of the VGA port, to the right (upper) a display port socket, to the right (lower) a USB-A socket.

Hardware interfaces exist in many components, such as the various buses, storage devices, other I/O devices, etc. A hardware interface is described by the mechanical, electrical, and logical signals at the interface and the protocol for sequencing them (sometimes called signaling).[3] A standard interface, such as SCSI, decouples the design and introduction of computing hardware, such as I/O devices, from the design and introduction of other components of a computing system, thereby allowing users and manufacturers great flexibility in the implementation of computing systems.[3] Hardware interfaces can be parallel with several electrical connections carrying parts of the data simultaneously or serial where data are sent one bit at a time.[4]

Software interfaces

edit

A software interface may refer to a wide range of different types of interfaces at different "levels". For example, an operating system may interface with pieces of hardware. Applications or programs running on the operating system may need to interact via data streams, filters, and pipelines.[5] In object oriented programs, objects within an application may need to interact via methods.[6]

In practice

edit

A key principle of design is to prohibit access to all resources by default, allowing access only through well-defined entry points, i.e., interfaces.[7] Software interfaces provide access to computer resources (such as memory, CPU, storage, etc.) of the underlying computer system; direct access (i.e., not through well-designed interfaces) to such resources by software can have major ramifications—sometimes disastrous ones—for functionality and stability.[citation needed]

Interfaces between software components can provide constants, data types, types of procedures, exception specifications, and method signatures. Sometimes, public variables are also defined as part of an interface.[8]

The interface of a software module A is deliberately defined separately from the implementation of that module. The latter contains the actual code of the procedures and methods described in the interface, as well as other "private" variables, procedures, etc. Another software module B, for example the client to A, that interacts with A is forced to do so only through the published interface. One practical advantage of this arrangement is that replacing the implementation of A with another implementation of the same interface should not cause B to fail—how A internally meets the requirements of the interface is not relevant to B, which is only concerned with the specifications of the interface. (See also Liskov substitution principle.)[citation needed]

In object-oriented languages

edit

In some object-oriented languages, especially those without full multiple inheritance, the term interface is used to define an abstract type that acts as an abstraction of a class. It contains no data, but defines behaviours as method signatures. A class having code and data for all the methods corresponding to that interface and declaring so is said to implement that interface.[9] Furthermore, even in single-inheritance-languages, one can implement multiple interfaces, and hence can be of different types at the same time.[10]

An interface is thus a type definition; anywhere an object can be exchanged (for example, in a function or method call) the type of the object to be exchanged can be defined in terms of one of its implemented interfaces or base-classes rather than specifying the specific class. This approach means that any class that implements that interface can be used.[citation needed] For example, a dummy implementation may be used to allow development to progress before the final implementation is available. In another case, a fake or mock implementation may be substituted during testing. Such stub implementations are replaced by real code later in the development process.

Usually, a method defined in an interface contains no code and thus cannot itself be called; it must be implemented by non-abstract code to be run when it is invoked.[citation needed] An interface called "Stack" might define two methods: push() and pop(). It can be implemented in different ways, for example, FastStack and GenericStack—the first being fast, working with a data structure of fixed size, and the second using a data structure that can be resized, but at the cost of somewhat lower speed.

Though interfaces can contain many methods, they may contain only one or even none at all. For example, the Java language defines the interface Readable that has the single read() method; various implementations are used for different purposes, including BufferedReader, FileReader, InputStreamReader, PipedReader, and StringReader. Marker interfaces like Serializable contain no methods at all and serve to provide run-time information to generic processing using Reflection.[11]

Programming to the interface

edit

The use of interfaces allows for a programming style called programming to the interface. The idea behind this approach is to base programming logic on the interfaces of the objects used, rather than on internal implementation details. Programming to the interface reduces dependency on implementation specifics and makes code more reusable.[12]

Pushing this idea to the extreme, inversion of control leaves the context to inject the code with the specific implementations of the interface that will be used to perform the work.

User interfaces

edit

A user interface is a point of interaction between a computer and humans; it includes any number of modalities of interaction (such as graphics, sound, position, movement, etc.) where data is transferred between the user and the computer system.

See also

edit

References

edit
  1. ^ Hookway, B. (2014). "Chapter 1: The Subject of the Interface". Interface. MIT Press. pp. 1–58. ISBN 9780262525503.
  2. ^ IEEE 100 - The Authoritative Dictionary Of IEEE Standards Terms. NYC, NY, USA: IEEE Press. 2000. pp. 574–575. ISBN 9780738126012.
  3. ^ a b Blaauw, Gerritt A.; Brooks, Jr., Frederick P. (1997), "Chapter 8.6, Device Interfaces", Computer Architecture-Concepts and Evolution, Addison-Wesley, pp. 489–493, ISBN 0-201-10557-8 See also: Patterson, David A.; Hennessey, John L. (2005), "Chapter 8.5, Interfacing I/O Devices to the Processor, Memory and Operating System", Computer Organization and Design - The Hardware/Software Interface, Third Edition, Morgan Kaufmann, pp. 588–596, ISBN 1-55860-604-1
  4. ^ Govindarajalu, B. (2008). "3.15 Peripheral Interfaces and Controllers - OG". IBM PC And Clones: Hardware, Troubleshooting And Maintenance. Tata McGraw-Hill Publishing Co. Ltd. pp. 142–144. ISBN 9780070483118. Retrieved 15 June 2018.
  5. ^ Buyya, R. (2013). Mastering Cloud Computing. Tata McGraw-Hill Education. p. 2.13. ISBN 9781259029950.
  6. ^ Poo, D.; Kiong, D.; Ashok, S. (2008). "Chapter 2: Object, Class, Message and Method". Object-Oriented Programming and Java. Springer-Verlag. pp. 7–15. ISBN 9781846289637.
  7. ^ Bill Venners (2025-08-05). "Leading-Edge Java: Design Principles from Design Patterns: Program to an interface, not an implementation - A Conversation with Erich Gamma, Part III". artima developer. Archived from the original on 2025-08-05. Retrieved 2025-08-05. Once you depend on interfaces only, you're decoupled from the implementation. That means the implementation can vary, and that is a healthy dependency relationship. For example, for testing purposes you can replace a heavy database implementation with a lighter-weight mock implementation. Fortunately, with today's refactoring support you no longer have to come up with an interface up front. You can distill an interface from a concrete class once you have the full insights into a problem. The intended interface is just one 'extract interface' refactoring away. ...
  8. ^ Patterson, D.A.; Hennessy, J.L. (7 August 2004). Computer Organization and Design: The Hardware/Software Interface (3rd ed.). Elsevier. p. 656. ISBN 9780080502571.
  9. ^ "What Is an Interface". The Java Tutorials. Oracle. Archived from the original on 2025-08-05. Retrieved 2025-08-05.
  10. ^ "Interfaces". The Java Tutorials. Oracle. Archived from the original on 2025-08-05. Retrieved 2025-08-05.
  11. ^ "Performance improvement techniques in Serialization". Precise Java. Archived from the original on 2025-08-05. Retrieved 2025-08-05. We will talk initially about Serializable interface. This is a marker interface and does not have any methods.
  12. ^ Gamma; Helm; Johnson; Vlissides (1995). Design Patterns: Elements of Reusable Object-Oriented Software. Addison Wesley. pp. 17–18. ISBN 9780201633610.
rmb是什么货币 月经期喝什么汤好 什么风化雨 反社会人格有什么表现 不洁是什么意思
妮子什么意思 snidel是什么牌子 银屑病用什么药膏 尿道感染吃什么药好得快 礼尚往来什么意思
考研是什么时候考 总是放响屁是什么原因 张国立老婆叫什么名字 眼底出血用什么眼药水最好 小孩掉头发是什么原因
五位一体是什么 喉炎吃什么药好得快 颈椎病用什么药膏 古代广东叫什么 乳头瘤病毒是什么意思
hr是什么职业hcv9jop4ns2r.cn 下肢水肿是什么原因hcv8jop9ns2r.cn 儿童包皮过长挂什么科adwl56.com 正月十五是什么节hcv9jop7ns1r.cn halloween是什么意思hcv8jop9ns4r.cn
占有欲什么意思hcv9jop4ns4r.cn 蓬蒿人是什么意思hcv7jop9ns9r.cn ed是什么病hcv9jop2ns6r.cn 悄悄的什么hcv8jop1ns0r.cn 曹操的脸谱是什么颜色hcv8jop4ns7r.cn
奢华是什么意思hcv9jop2ns5r.cn 感化是什么意思hcv9jop2ns8r.cn 男生什么时候会有生理反应hcv8jop4ns6r.cn 手指关节痛挂什么科hcv8jop2ns4r.cn 暂时无法接通是什么意思hcv8jop9ns6r.cn
解脲支原体阳性吃什么药最好hcv8jop6ns3r.cn 女士内裤用什么洗最好hcv7jop4ns7r.cn 慢性胰腺炎吃什么药qingzhougame.com 看见蛇有什么预兆hcv8jop2ns4r.cn 一个彭一个瓦念什么hcv8jop6ns1r.cn
百度