What is InterFace???

Answer Posted / dhanunjaya

An interface is the contract between the class and itself.
an interface can contain abstract memberrs only.
And more over an interface can contain abstract
functions,abstractv properties,abstract events,abstract
indexers,but not contain
variables,functions,constructors,destructors.it provides
the rules that can followed by all the derived classes......

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which string method is used for concatenation of two strings in c#?

473


List the difference between interface and abstract class?

470


What is a method signature in c#?

511


What is the role of the datareader class in ado.net connections?

510


What is the data encapsulation?

487






What the different phase/steps of acquiring a proxy object in webservice?

473


What is bit in c#?

525


What are indexers in c# .net?

526


Why objects are stored in heap in c#?

482


What are interfaces in c#?

518


Is there a way of specifying which block or loop to break out of when working with nested loops?

545


What is the purpose of the integer parse method the decimal parse method?

523


What are the 3 different types of arrays?

565


What do you mean by the delegate in c#?

511


What are extensions methods in c#?

473