2
Reply

What is new keyword in case of method hiding?

jagdish bidwai

jagdish bidwai

Dec 16, 2016
602
0

    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();}}

    Subhashkumar Yadav
    February 22, 2017
    1

    new

    Mukesh Kumar
    August 28, 2017
    0