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

Answer Posted / pugal

When creating a standalone project which can be
changed at will, use an interface in preference to an
abstract class; because, it offers more design flexibility.

Use an interface to design a polymorphic hierarchy
for value types.

Use an interface when an immutable contract is
really intended.

A well-designed interface defines a very specific
range of functionality. Split up interfaces that contain
unrelated functionality.

Is This Answer Correct ?    48 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is assembly manifest?

528


What Is An Interface Class?

560


What is ioc containers c#?

454


What do you mean by string objects are immutable?

506


Name some string escape sequences in c#.

570






Is it possible to execute multiple catch block for a single try statement?

583


What is namespace give the example?

462


how encapsulation is implemented in c#

641


What is the usage of OLE?

588


What does exclamation mark mean c#?

537


What is clr namespace?

492


What is hierarchical inheritance in c#?

489


What is boxing? Explain its functionality?

559


What is difference between continue and break in c#?

481


What is difference between c sharp and c#?

470