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

What is wcf c#?

518


Explain what is copy constructor?

554


Are attributes inherited c#?

467


What is definition in c#?

479


How can we set class to be inherited, but prevent the method from being over-ridden?

536






What is difference between the "throw" and "throw ex" in .net?

488


What is difference between comparable and comparator?

466


What is difference between private and protected in c#?

494


What is writeline?

485


Write a short note on interface?

584


What is difference between asp net and c# net?

487


if you do have a stack overflow profile.what is your ranking?

1483


What does the initial catalog parameter define in the connection string?

485


Which namespaces are necessary to create a localized application?

616


Is c# used for frontend or backend?

585