class Base
get a as String is protected
return "a"
class Inherited
inherits Base
get a as String is override
return "b"
gives
- Code: Select all
error: "Sub.A": cannot change access modifiers when overriding "protected" inherited member "Base.A"
warning: (Location of symbol related to previous error)
Compilation failed - 1 error, 1 warning
class Base
get a as String is protected
return "a"
class Inherited
inherits Base
get a as String is protected override
return "b"
gives
- Code: Select all
error: Expecting EOL, but got "override" instead.
Compilation failed - 1 error, 0 warnings
Thanks for your help