Hai All
In which scenario I use Abstract Classes and Interfaces, and one more thing i can use both.
Loading
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 Feb 22, 2012, 6:29 AM
An Abstract class without any implementation just looks like an Interface; however there are lot of differences than similarities between an Abstract class and an Interface.
Interfaces are useful when you do not want classes to inherit from unrelated classes just to get the required functionality.It is used where there of chances adding new method in future. Interfaces are more used to set standards. interface gave merely a specification,nothing implemented for any standalone project which can be changed at will its more design flexible and it can be utilized to model multiple inheritance.
please refer,
www.codeproject.com/Articles/11155/Abstract-Class-versus-Interface
hope this help.
venkata saibabuPosted Feb 22, 2012, 5:22 AM