Interface (I/F)

Định nghĩa Interface (I/F) là gì?

Interface (I/F)Interface (I / F). Đây là nghĩa tiếng Việt của thuật ngữ Interface (I/F) - một thuật ngữ thuộc nhóm Technology Terms - Công nghệ thông tin.

Độ phổ biến(Factor rating): 5/10

Một giao diện rõ một nhóm và / hoặc một tập hợp các phương pháp, chưa được thực hiện. Khi một lớp thực hiện một giao diện, lớp cung cấp một thực hiện cho tất cả các phương pháp giao diện xác định. Một lớp học duy nhất có thể thực hiện bất kỳ số lượng các giao diện. Đôi khi, tờ khai liên tục được bao gồm trong một giao diện, cùng với định nghĩa phương pháp. Nhược điểm cho giao diện là tất cả các phương pháp giao diện phải được công khai và chỉ phương pháp trừu tượng có thể được sử dụng trong một giao diện. Tuy nhiên, vì những phương pháp này tiềm ẩn, họ không được công bố.

Xem thêm: Thuật ngữ công nghệ A-Z

Giải thích ý nghĩa

Một giao diện được giải thích tốt nhất với một ví dụ. Ví dụ phổ biến nhất là các kết nối giữa một truyền hình, điều khiển từ xa và người dùng. Một lượt người dùng trên TV bằng cách sử dụng điều khiển từ xa và có thể không nhất thiết phải biết gì về hệ thống dây điện của TV. Như vậy, điều khiển từ xa là một giao diện giữa người sử dụng và các thiết lập truyền hình. Tương tự như vậy, khi một lớp thực hiện một giao diện, các chức năng phương pháp được thực hiện mà không cần kiến ​​thức về hoạt động bên trong của phương pháp. Sau đây là ví dụ về khi sử dụng một giao diện:

What is the Interface (I/F)? - Definition

An interface specifies a group and/or a set of methods, which have not been implemented. When a class implements an interface, the class provides an implementation to all defined interface methods. A single class may implement any number of interfaces. Sometimes, constant declarations are included in an interface, along with method definitions. Disadvantages for the interface is that all interface methods must be public and only abstract methods may be used in an interface. However, because these methods are implicit, they are not declared.

Understanding the Interface (I/F)

An interface is best explained with an example. The most common example is the connections among a television, a remote control, and a user. A user turns on the TV by using the remote control and may not necessarily know anything about the TV’s wiring. Thus, the remote control is an interface between the user and the television set. Similarly, when a class implements an interface, the method functionalities are implemented without knowledge of the method's inner workings. The following are examples of when to use an interface:

Thuật ngữ liên quan

  • Class
  • Inheritance
  • Human Interface Device (HID)
  • Interaction Management
  • Application Programming Interface (API)
  • Method
  • Interface Implementation
  • Inference
  • Interface Message Processor (IMP)
  • Seamless Interface

Source: ? Technology Dictionary - Filegi - Techtopedia - Techterm

Trả lời

Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *