C# Abstract classes

advaster's Avatar, Join Date: Oct 2005
Newbie Member
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's Avatar, Join Date: Jul 2004
Go4Expert Founder
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's Avatar, Join Date: Oct 2005
Newbie Member
Thanx for help shabbir

shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Quote:
Originally Posted by advaster
Thanx for help shabbir

My pleasure.