what is the real use of interface in c#,other than that
multiple inheritance is not possible

Answer Posted / siddu.

Interfaces are used to define common functionality among the
child classes or struts.

Interfaces can be used to implement some rules on the
derived classes or struts.

Interface are used to hold object of a class which derives
it in client machine in case of remoting.

Is This Answer Correct ?    7 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does the system.exception class have any cool features?

490


What is difference between dictionary and list in c#?

444


Why do we need serialization?

428


What is expandoobject in c#?

472


how encapsulation is implemented in c#

625






What are properties in c#. Explain with an example?

464


what is IEquatable

551


What is Dependency of Injection?

527


What is the main method in c#?

515


What is the implicit name of the parameter that gets passed into the set method/property of a class?

491


What are callback methods in c#?

492


Can we use "this" command within a static method?

543


What are the uses of namespaces?

592


What is private constructor c#?

485


What does char mean in c#?

490