Possible Duplicates:
Interfaces: Why can't I seem to grasp them?
What is an Interface
At this time, all I know about Interface is that it contains classes, ... like a namespace. What is its purpose? Why don't we just use Namespace?
Thank you.
Possible Duplicates:
Interfaces: Why can't I seem to grasp them?
What is an Interface
At this time, all I know about Interface is that it contains classes, ... like a namespace. What is its purpose? Why don't we just use Namespace?
Thank you.
See this duplicate post:
An interface is like a template design for a class that contains no data or implemetnation; only definitions for methods, properties etc. These are abstract and cannot be instantiated but can be inherited from at which point all specified methods etc must be implemented by the concrete class inheriting the interface.
From MSDN:
An interface contains only the signatures of methods, delegates or events. The implementation of the methods is done in the class that implements the interface,