Saturday, November 27, 2010

Sunday, September 26, 2010

Interfaces in C#

Interface only contains declaration of methods,events,properties. But cannot contain any variables to hold data.
Ex: Public Interface IEmployee { int i=100; void getSalary(string EmpId) }
Note : The above Interface will throw an error. Because of the declaration of the integer variable.