Finally ! The Real Simple Guide To Understanding #interfaces
▻https://hackernoon.com/finally-the-real-simple-guide-to-understanding-interfaces-8224c78bf01f?s
Understanding Interfaces can be challenging for many beginning programmers. Here’s a super simple guide to understanding them.The classic explanation is that “an Interface is a contract”. This is what the people interviewing you for a job expect to hear. But what does “an interface = a contract” mean?Well, first off, we know that Interfaces contain a special format of code that does not perform any tasks itself, that is, an Interface may have method signatures (the beginning part of a method), but all the code functionality is missing! The actual method code is contained in the class which only implements (the Interface version of inheritance) the interface.// The Interface// Notice that the interface only has a method signature. The method has no body.public interface IExampleInterface (...)