Click here to Skip to main content
15,892,674 members
Please Sign up or sign in to vote.
1.00/5 (6 votes)
See more:
Please answer.

My question is, what is the exact and main purpose of these three things in real time.
Posted
Updated 22-Nov-10 4:45am
v2
Comments
Sandeep Mewara 22-Nov-10 11:01am    
Google?

They have nothing to do with real time. Let me explain what they are:

A static class is a class where all methods and members are static, in other words there is no class instance. This means that you don't have to instantiate it, you can just use it as it is. This is different from an ordinary class with a static accessor method and a private constructor where the accessor is used to return an instance of the class.

An abstract class is a class which defines some functionality, and optionally some methods that you are expected to provide behaviour for, but the class cannot be instantiated. This means that the class must have a concrete implementation that derives from it to be called.

An interface is a contract. Nothing more, nothing less. It states that your class will provide implementations of certain methods. As such, an interface cannot have items such as method implementations, or field definitions. As you may be aware, C# does not allow you to use multiple inheritance - what you can do though, is have multiple interfaces on a class.
 
Share this answer
 
A static class has nothing at all to do with the other two things. Besides that, this question has been asked and answered here once already today. Using google will give you your answers.
 
Share this answer
 
Your question is too general,and the answer is too long to explain.
You can see on the msdn, it is complete and with example:

Abstract[^]

Interface[^]

Static[^]

If you have a specific question, does not dither.
 
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