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

Name the connections does microsoft sql server support?

555


Why do we use hashtable in c#?

562


Can a class be private in c#?

603


Explain About Postback

633


Explain the difference between object type and dynamic type variables in c#?

574






if we are updating a database using thread, and mean while application crashes or thread being aborted then what will happen in Database? Rollback or Database will be updated? Please explain with different scenario.

2014


What is a predicate in c#?

570


Which framework is best for desktop application?

605


If dll and exe files are same it means you can deploy both the files in gac?

593


What is a private class in c#?

565


Can interface inherit class in c#?

564


Explain the difference between Response.Write () and Response.Output.Write ().

599


What are the steps for creating clr trigger

663


What is the difference between double and decimal in c#?

552


What is the signature of a method?

581