what is use of interface
Answers
Answered by
2
Explanation:
The purpose of interfaces is to allow the computer to enforce these properties and to know that an object of TYPE T (whatever the interface is ) must have functions called X,Y,Z, etc.
Answered by
0
Answer:
Capturing similarities among unrelated classes without artificially forcing a class relationship.
Declaring methods that one or more classes are expected to implement
Revealing an object's programming interface without revealing its class
Modelling multiple inheritance, a feature that some object-oriented languages support that allows a class to have more than one superclass
Similar questions