Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
What is the major diffrence b/w interface and abstract classs
Posted

Please refer below link.It gives you the better idea

Abstract Class versus Interface[^]
 
Share this answer
 
Simple: an Abstract class can contain code, an interface can't.

This means that an Abstract class can contain basic code for getting a class working, and the derived class only has to implement the extra code which is specific to that class. With an interface, all code must be provided in all derived classes.

In addition, in most languages, you and only derive from a single class: but you can add as many interface as you need. You cannot derive from two abstract base classes.
 
Share this answer
 

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