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

Please help !

Recommended Answers

All 3 Replies

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.