12 lines
286 B
C#
Raw Normal View History

// CS0506: `DerivedClass.Show()': cannot override inherited member `BaseClass.Show()' because it is not marked virtual, abstract or override
// Line: 9
class BaseClass {
protected void Show () {}
}
class DerivedClass: BaseClass {
protected override void Show () {}
}