If the abstract method was hidden by previous abstract inheritance, how can I implement it in concrete class? I have no way to access it, only the access to the inheriting abstract method with same name. The system reports error even it's masked. Here is an example:
abstract class MyAbClass1
{
abstract public int MyMethod(int x);
}
abstract class MyAbClass2 : MyAbClass1
{
abstract public int MyMethod(int x);
}
class Myderived : MyAbClass2
{
override public int MyMethod(int x)
{
return x;
}
}
If
MyAbClass2
does not have an implementation ofMyMethod
it should not even specify it - it remainabstract
. If it does, then it should use theoverride
keyword, wherebyMyderived
can also override.or