When we use abstrct class and interface class
when we use abstrct class and interface class
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh TrivediPosted Mar 28, 2013, 9:22 AM
hi,
these all are depending on you and your design.
generally, Interface and abstrct classused to get specific behaviour of class.
Interface can be used when multiple entities behaviour is required.Interface are used in webservice and WCF service to share their contract.
abstract class can have shared state or functionality.so it will reduce the amount of code that has to be rewritten.
hope this will help you.
Satyapriya NayakPosted Mar 28, 2013, 9:15 AM