Tag Archives: C# new keyowrd

C# : new and virtual keywords

Example demonstrate how we can access derived class method without overridng the base class method. Fiddle public class Base { public virtual void Run() { Console.WriteLine(“Base running”); } } public class Derieved : Base { public new void Run() { … Continue reading

Posted in C# | Tagged , | Leave a comment