samplestudy


{ City } bangalore
< Country > india
* Profession *
User No # 8973
Total Questions Posted # 0
Total Answers Posted # 1

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 48
Users Marked my Answers as Wrong # 14
Questions / { samplestudy }
Questions Answers Category Views Company eMail




Answers / { samplestudy }

Question { 29526 }

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


Answer

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