jagdish bidwai
What is new keyword in case of method hiding?
By jagdish bidwai in .NET on Dec 16 2016
  • Subhashkumar Yadav
    Feb, 2017 22

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

    • 1
  • Mukesh Kumar
    Aug, 2017 28

    new

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS