What is new keyword in case of method hiding?
jagdish bidwai
New KeywordNew keyword is also used in polymorphism concept, but in the case of method overloading So what does overloading means, in simple words we can say procedure of hiding your base class through your derived class.It is implemented as:class A{public void show(){Console.WriteLine("Hello: Base Class!");Console.ReadLine();}}class B : A{public new void show(){Console.WriteLine("Hello: Derived Class!");Console.ReadLine();}}
new