Discussion :: Polymorphism - General Questions (Q.No.4)
|Sami said: (Jan 5, 2014)|
|Can anyone please explain A and C? how A is correct any example.|
|Hung Vu said: (May 18, 2015)|
|When used as a declaration modifier, the new keyword explicitly hides a member that is inherited from a base class. When you hide an inherited member, the derived version of the member replaces the base class version.
Although you can hide members without using the new modifier, you get a compiler warning. If you use new to explicitly hide a member, it suppresses this warning.
Post your comments here:
Email : (optional)
» Your comments will be displayed only after manual approval.