Is the below code is good or bad implementation?
public abstract class BaseTest
{
protected void Process()
{
//do something
}
public abstract void Save();
}
public class DerivedTest : BaseTest
{
public override void Save()
{
//Call function from base class
Process();
}
}
Aucun commentaire:
Enregistrer un commentaire