Please tell me what r interfaces .....
I tried to understand them myself but could not !!!???

Please help !

5 Years
Discussion Span
Last Post by k.d.m

An interface is a reference type object with no implementation. You can think of it as an abstract class with all the implementation stripped out and everything that is not public removed. Abstract classes are classes that can not be instantiated. No properties or methods are actually coded in an interface, they are only defined. So the interface doesn't actually do anything but only has a signature for interaction with other classes or interfaces.

Check for some simple examples here.


Interface can be consider as a contract. All the members and methods defined in the interface should be implemented in derived class. Two interfaces can have same method. But when implement method should be implemented as interface name.method name.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.