Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C# (http://www.go4expert.com/forums/c-sharp/)
-   -   C# Abstract classes (http://www.go4expert.com/forums/c-sharp-abstract-classes-t1753/)

advaster 30Oct2006 08:06

C# Abstract classes
 
Hello everybody

Can someone help with the explanation of the abstract classes. Why should I use abstact

classes it will be empty class for derived classes, what will they derive.

Thanx in advance.

:)

shabbir 30Oct2006 13:58

Re: C# Abstract classes
 
Quote:

Originally Posted by advaster
Can someone help with the explanation of the abstract classes.

An abstract class, is one that is designed only as a parent class and from which child classes may be derived, and which is not suitable for instantiation.
Quote:

Originally Posted by advaster
Why should I use abstact

To give the same interface to all the derived classes
Quote:

Originally Posted by advaster
classes it will be empty class for derived classes, what will they derive.

They will derive classes.

advaster 30Oct2006 21:42

Re: C# Abstract classes
 
Thanx for help shabbir

:)

shabbir 31Oct2006 10:14

Re: C# Abstract classes
 
Quote:

Originally Posted by advaster
Thanx for help shabbir

:)

My pleasure.


All times are GMT +5.5. The time now is 20:38.