Click here to Skip to main content
14,981,841 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Real Examples of Abstract class and Interface (when use abstract and when use interface)

One thing, when you are project design is not 100% complete in requirement analysis phase i e you anticipate design changes at later stage of project life cycle then better to use Abstract class. Because say you need to add on method in you interface then you have implement that mathod in all the classes which are implementing that interface.
But in case of Abstarct class, every implementing class need not to implement that.
There are a lot of differenecs between them. A good article is on CP itself. Have a look Abstract Class versus Interface

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