Are interfaces a layer between objects(different objects) and actions(different object types trying to perform same action)? and Interface checks what kind of object is it and how it can perform a particular action?
Are interfaces a layer between objects(different objects) and actions(different object types trying to perform
Share
Are you asking about the term “interface” as used in a specific language (such as Java or Objective-C), or the generic meaning of the term?
If the latter, then an “interface” can be almost anything. Pour oil on water — the line between them is an “interface”. An interface is any point where two separate things meet and interact.
The term does not have a rigorous definition in computing, but refers to any place where two relatively distinct domains interact.