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 using in c#?

475


Is functional interface runnable?

516


Are c# constructors the same as c++ constructors?

543


Is a games console a computer?

488


Is string nullable in c#?

463






What is the difference between function and method in c#?

461


How to add controls dynamically to the form using c#.net.

484


What are the different types of classes?

484


Explain how can you clean up objects holding resources from within the code?

486


What is the use of the dispose method in C# ?

550


Does c# have primitives?

485


What are extensions in c#?

546


What is _viewstart cshtml?

489


explain the three services model commonly know as a three-tier application.

556


Define a partial class?

510