Click here to Skip to main content
15,896,154 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
what is the difference between abstract class and interface class and when we use these classes
Posted

C'mon use google, it's full of all such examples and discussions:

Abstract Class versus Interface[^]
 
Share this answer
 
Comments
Uday P.Singh 2-Oct-11 2:24am    
my 5!
An interface defines properties and methods that your class must implement.

An abstract class
0) may define properties and methods that your class must implement if it's not your class is not abstract.
1) can have implementations of properties, methods and constructors

Any class can only inherit from one other class (abstract or not), but can implement multiple interfaces.

For more details see
Interfaces (C# Programming Guide)[^]
Abstract and Sealed Classes and Class Members (C# Programming Guide)[^]
Interfaces and Abstract Classes[^]
 
Share this answer
 
Comments
Uday P.Singh 2-Oct-11 2:24am    
my 5!
Simon Bang Terkildsen 2-Oct-11 5:27am    
Thanks, Uday
Google Search is absolutely free to find Answers of this type of Questions.

Google Search Result
 
Share this answer
 
Comments
Uday P.Singh 2-Oct-11 2:25am    
my 5!
RaisKazi 2-Oct-11 8:38am    
Thanks Uday :)
 
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