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

Can scriptable objects have methods?

670


why delegate is type safe?

2780


What is list array in c#?

638


What is generic method in c#?

668


what is the scope of anonymous type ?

775


What is a cshtml file?

702


Is xml tags are case sensitive?

656


Explain manifest & metadata in c#.

737


What is ulong in c#?

766


How do you escape in c#?

728


Why do we need generics?

694


Do loops in c#?

664


What is executereader in c#?

660


What do you mean by casting a data type?

705


Why should you override the tostring() method?

764