we must first define the interface ...
Interface : this is the means by which 2 "things" talk to each other and exchange information. βthingsβ can be (1) human or (2) working code of any type (e.g. library, desktop application, OS, web service ... etc.).
if a person wants to talk with the program that he needs Graphical user interface (GUI) or command line interface (CLI). both are types of interfaces that people (but not programs) would like to use.
if, however, any executable code (of any type) wants to talk to another executable code (of any type), it does not need or does not need a graphical or command line interface, it will most likely need an Application Programming Interface (API).
to answer the original question about the post: the library is a type of executable code, and the API is the way this code works with other executable codes.
docesam Nov 20 '15 at 17:24 2015-11-20 17:24
source share