0

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.

Community
  • 1
  • 1
Luke Vo
  • 17,859
  • 21
  • 105
  • 181

2 Answers2

0

See this duplicate post:

What is an Interface

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.

Community
  • 1
  • 1
Chris Snowden
  • 4,982
  • 1
  • 25
  • 34
0

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,

Buhake Sindi
  • 87,898
  • 29
  • 167
  • 228