B
Brybot
Apparently it is not possible for a static class to extend an abstract
class? I was wondering how else I might be able to go about my problem
here?
I have a base class Parent which has a static method and an abstract
method.
public abstract class Parent {
public static bool True()
{
return true;
}
public abstract (static?) bool Foo();
}
and i want to be able to implement Foo in a static child class, but
also statically access True()
but something like this is not allowed:
public static class Child: Parent {
public override static bool Foo()
{
return false;
}
}
I just want to be able to go Child.Foo() or Child.True()?
Any help would be GREATLY appreciated!
Thanks in advance.
class? I was wondering how else I might be able to go about my problem
here?
I have a base class Parent which has a static method and an abstract
method.
public abstract class Parent {
public static bool True()
{
return true;
}
public abstract (static?) bool Foo();
}
and i want to be able to implement Foo in a static child class, but
also statically access True()
but something like this is not allowed:
public static class Child: Parent {
public override static bool Foo()
{
return false;
}
}
I just want to be able to go Child.Foo() or Child.True()?
Any help would be GREATLY appreciated!
Thanks in advance.