I have a class (class B) that inherits another class (class A) that contains virtual methods.
I hardly missed the override keyword when declaring an overriding method (presumably) in class B.
Class A
public class ClassA{ public virtual void TestMethod(){ } }
Class B
public class ClassB : ClassA{ public void TestMethod(){ } }
Compiled code without problems. Can someone explain why?
override inheritance methods c #
Jimbo
source share