public void ChildClassExplicitParentClassOverridden() { NewAndOverrideClasses.ParentClass childClass = new NewAndOverrideClasses.ChildClassOverride(); System.Diagnostics.Debug.WriteLine(System.Reflection.MethodBase.GetCurrentMethod().Name); System.Diagnostics.Debug.WriteLine(childClass.SayHelloWorld()); }
public void ChildClassSayingHelloWorld() { var childClass = new NewAndOverrideClasses.ChildClassOverride(); System.Diagnostics.Debug.WriteLine(System.Reflection.MethodBase.GetCurrentMethod().Name); System.Diagnostics.Debug.WriteLine(childClass.SayHelloWorld()); }
public void ChildClassCallingHelperMethod() { var childClass = new NewAndOverrideClasses.ChildClassOverride(); System.Diagnostics.Debug.WriteLine(System.Reflection.MethodBase.GetCurrentMethod().Name); System.Diagnostics.Debug.WriteLine(childClass.CallMethodToSayHelloWorld()); }
public void ChildClassExplicitInterfaceOverridden() { NewAndOverrideClasses.IHelloWorld childClass = new NewAndOverrideClasses.ChildClassOverride(); System.Diagnostics.Debug.WriteLine(System.Reflection.MethodBase.GetCurrentMethod().Name); System.Diagnostics.Debug.WriteLine(childClass.SayHelloWorld()); }