How to have abstract and overriding constants in C# ?
- by Chris
Hi all,
My code below won't compile. What am i doing wrong? I'm basically trying to have a public constant that is overridden in the base class.
public abstract class MyBaseClass
{
public abstract const string bank = "???";
}
public class SomeBankClass : MyBaseClass
{
public override const string bank = "Some Bank";
}
Thanks as always for being so helpful!