Interface

An interface is a contract and contains the functions.  The implementing class has to implement this contract.  The user of the class calls functions using this interface.   This removes the dependency of the user of a class on class implementation which enables us to create new implementations with minimal changes to the users of the class. 


 

 

Last modified: Sunday, 3 January 2021, 9:55 PM