Hi everyone...I have this
abstract class Program
{
static void Main(string[] args)
{
}
public abstract void m1();
}
class Program2 : Program
{
public override void m1()
{
}
}
I inherit Program and implement the method m1(), can anyone explain in a simple way why I would not just implement this method in Program instead of Program2. Surely this would save time in creating a child class and overriding the method? I know there must be a reason behind it!
Is the main reason for an abstract class to have reusable code available to subclasses and save time?
Thanks
James