Click here to Skip to main content
14,869,803 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
"I want to have 3 abstract methods(just definition and no implementation) in a type, should i use Interface or Abstract Class as the container for those 3 abstract methods?

Since Interface and Abstract Class, both can contain abstract methods which one should i choose in my implementation?
Posted

Please see my past answers on the topic referenced in this one: Doubts on Interfaces[^].

Good luck,
—SA
   
Comments
CPallini 22-Jun-14 4:58am
   
My 5.
it seems you'd better go with interfaces
the interface is good if you don't have any implementation for none of your members but if you think you might need to have any members with implementation in the future, abstract class is a better option.
   
Comments
yash35 21-Jun-14 16:20pm
   
Hi Thanks for reply. Other than this any other particular reason for choosing Interface, Like performance,enhancement...something like that
go for interface ,it is better for your scenario.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900