Chukkalove wrote:
Hi
I have an abstract class that contains 100% static methods and variables.
In order that a class be abstract, it must have at least one abstract
member, and static members cannot be abstract, so I don't know how you
did this.
One of the member variables "string DatabaseName" needs to be overridden in
derived classes.
That makes no sense. "Override in derived classes" means polymorphism,
and polymorphism works only with class instances. Since your class is
entirely static, and therefore (presumably) you would want the
"overridden" thing to be static in the child class as well, I don't
understand what you're after.
Am I able to keep my class as totally static and do this?
Absolutely not. However, I think that the problem here is one of
terminology or design. Could you step back a few paces and describe the
effect you're trying to achieve and the problem you're trying to solve?
Maybe there's a different solution for your problem, or maybe we just
misunderstand what it is you need to do.