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

Answer Posted / kalaimani

The interface contains only declaration of methods, no implementation. Because the interface is can be inherited by class and struct.

Is This Answer Correct ?    21 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define an escape sequence, name few strings in escape sequence?

462


In which format you can pass the value in the sleep function?

533


Is c# the same as d flat?

493


What is the .NET collection class that allows an element to be accessed using a unique key?

587


Can we inherit partial class in c#?

485






What is c# and why it is used for?

491


Does main have to be static c#?

476


Which is better interface or abstract class in c#?

432


Why are strings immutable in c#?

482


What are the various components in crystal reports?

490


Which one is trusted and which one is untrusted?

504


What is type safe in c#?

479


Which compiler switch creates an xml file from xml comments in the files in an assembly?

571


Is c# easier than javascript?

517


What are the concepts of dispose method?

479