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

What is eager loading in c#?

538


What is asp net c# corner?

904


How do you specify a custom attribute for the entire assembly (rather than for a class)?

611


Is exe is machine dependent?

579


Which are access modifiers available in c#?

617






who is a protected class-level variable available to?

613


What is difference between managed and unmanaged code?

568


Is enum a value type c#?

662


What does out mean c#?

582


Is it possible to force garbage collector to run?

553


Why do we use static class in c#?

566


What is cosole application?

669


write program in c# using this instructions name avinash varma ,work experiance<2,nochildren his work experiance is higher than 5 years,more than one children one children name is diwakar,number of years of work eperiance at current company is the ratio of children and work experiance is 0.21 to 0.5

1954


What do you mean by jagged arrays in c#?

559


How to use the sreamReader class to read form a text file?

648