Click here to Skip to main content
14,937,943 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[^]
   
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[^]
   
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
   
Comments
Uday P.Singh 2-Oct-11 2:25am
   
my 5!
[no name] 2-Oct-11 8:38am
   
Thanks Uday :)
   

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