12 lines
286 B
C#
12 lines
286 B
C#
|
// 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 () {}
|
||
|
}
|
||
|
|