Interface and abstract classes

when can i use interfaces and when can i use abstract classes.which one is the best choice and why ?

Views: 4170 | Community Opinion: 3

Tags..  OOPS Concept  Object Oriented Programming  C# Interview

Bookmark this page..

Ask a New Question Go to Home

Community Opinion/Answers

If you need to change your design, make it an interface. However, you may have abstract classes that provide some default behavior. Abstract classes are excellent candidates inside of application frameworks.

Abstract classes let you define some behaviors; they force your subclasses to provide others. It means for abstract classes some implementation should be common although you can override it. Use interfaces if you see different implementation for all implementing classes.

Bharti Said..

hi friends below link provides your answer of above questions and many more concept and questions on csharp and oops and there questions and answer

Destri Said..

I hate to tell you this, but Street View has been available in Google Maps for some time now; in fact, if mmorey serves me correctly Street View was a feature of Google Maps before Google Earth. The only thing that has changed recently is the Street View interface in Maps.

What do you think? Add your opinion/answer
*your opinion/answer: