Hey Champs,
I am little confused while implementing abstract class in my project,
please read the issue till the end.
This is the abstract class i have written with 4 abstract method
public abstract class EProduct
{
public EProduct()
{
//
// TODO: Add constructor logic here
//
}
public abstract void AddProduct(string UID);
public abstract bool DeletProduct(string UID,string ProjectId);
public abstract DataView ViewProductStatus(string UID);
public abstract void DownloadProduct(string UID,string ProjectId );
}
This is the class where i have inherited EProduct abstract class
public class DBTrans:EProduct
{
public DBTrans()
{
}
DBConn objDBCon=new DBConn();
public override void AddProduct(string UID)
{
}
public override bool DeletProduct(string UID,string ProjectId)
{
return true;
}
public override DataView ViewProductStatus(string UID)
{
DataView DV=new DataView();
return DV;
}
public override void DownloadProduct(string UID,string ProjectId )
{
}
}
Now the question is how the abstact class is going to help me ?
you may say this is a common place where method declaration of
any object is done.
but that's not sufficient !!
Yes tomorrow i may need to use those method with another class like
DBTrans (above),
But there i may not require all those abstract method inside the
abstract class.
but i MUST override all those method [ irritating..... ],
my question is where is actuall fun of using abstract class ?
comparatively if i use interface instead of abstract class in the same
scenario........ how that is going to help me ?
Thanks for patience
Arindam
Thanks & Regards
Arindam
Web Designer & Developer
---------------------------------
Too much spam in your inbox? Yahoo! Mail gives you the best spam protection
for FREE!
http://in.mail.yahoo.com
[Non-text portions of this message have been removed]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/