[Using .NET2.0]
Is there any way to change the return types on a member function in derived
classes? E.g., something like:
public abstract class A
{
protected abstract Object f();
}
public abstract class B<T> : A
{
override protected abstract T f();
}
or
public class C : A
{
override C f();
}
or
public class D : A
{
new D f();
}
I.e., I want to specify a function in a base class or interface and clarify
its return type in derived classes without having to cast the return value in
users.