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 difference between gridview and form view?

755


List down the commonly used types of exceptions in .net

659


What is difference between write and writeline in c#?

659


Difference between value and reference type. What are value types and reference types?

723


Describe two uses of the “using” statement during the operation of c#?

725


How will you allow a class to be inherited, but prevent the method from being over-ridden?

705


Can bool be null c#?

673


What is default access modifier for class in c#?

666


What is parallel programming in c#?

674


Why do we need to override in c#?

719


What is arraylist class in c#?

762


What are the value types in c#?

714


Explain the types of assemblies in .net?

707


What is the difference between static class and abstract class in c#?

670


How can I get around scope problems in a try/catch?

664