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

Answer Posted / venkatesan

Interface is a contract which declares a method inside and
gives the implementation in different classes using
polymorphism. we cannot create a object to an interface but
we can create a reference for an interface.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I create a delegate/multicastdelegate?

539


explain the nature of the assembly work?

2095


How do you pass reference parameters in c#?

442


What is Global Assembly Cache (GAC) and what is the purpose of it? (How to make an assembly to public? Steps) How more than one version of an assembly can keep in same place?

551


What is the difference between structure and class in c#?

464






Explain about accessibility modifier 'protected internal'?

535


What's difference between constants and static readonly?

525


What is constructors, explain with syntax

536


What is a string in c#?

470


What is verbatim literal in c#?

477


What is c# most used for?

556


What is field in c#?

457


When a Static Constructor is called in a Class?

572


what is a static constructor?

660


What is the difference between field and property in c#?

467