Answered Questions

  • Difference between shadow and override?

    Pooja

    • Apr 1st, 2015

    Overriding is redefining an existing virtual method from the base class while shadowing is creating a new method with same name and same signature as in the base class

    Saket Choubey

    • Dec 29th, 2014

    Shadowing hides the base class method from the derived class method by using new keyword. Purpose of shadowing is not to override a method but to give a new implementation.