Something To Code

All about programming and information security

Why interface for decoupled system? A note on how to design decoupled system in ASP.NET MVC

Interface doesn't do anything like classes and abstract classes, it just defines what the class will performs if some class inherits it. An interface also be inherit from another interface. If we take an example of USB (Universal Serial Bus), Its an interface which has signature of Connection functionality. The USB interface only know I have to connect with Desktop Computer or laptop or anything, but it does not know what implementation will come to connection. It may be Pen drive(mass storage), It may be Printer(COM Ports) [More]