An interface is like a class that does not have any of its methods implemented. Each method’s body is empty; all that is present are the method signatures. Because they isolate the precise implementation of a method from its declaration, interfaces can be used to add an abstraction layer to your code. As a result,
What Is an Interface In Apex Salesforce and How to Use It