Is it possible to create a base class like the following:
public abstract class baseClass
{
public abstract void SetParameters(/*want this to be adjustable*/);
}
so that classes that override it can define the parameters required? In other words, I want to force the method to be overridden, but leave it up to the overriding class what is required here - so one might be
public class derivedClass1 : baseClass
{
public override void SetParameters(Point a, int b);
}
whereas another could be
public class derivedClass2 : baseClass
{
public override void SetParameters(List<Line> a, Point b, Point c, bool e);
}
?
Thanks for any help you can give