If I have the accessor and default property in the base class as follows:
class base{
protected int _foo = 5;
public int foo {get{return _foo;}set{_foo = value;}}
}
Then I get this class, is it possible to override the default value of _foo?
class derived:base{
protected new int _foo = 10;
}
source
share