Hai All
In which scenario I use Abstract Classes and Interfaces, and one more thing i can use both.
Which scenario use Abstract Class and Interface
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
venkata saibabu10 reputationPosted Feb 22, 2012, 12:22 AM EST
Jignesh TrivediRank #16 · 50.3K reputationPosted Feb 22, 2012, 1:29 AM EST
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.