What you want to see on your favorite website?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 1723 |  Welcome, Guest!   Register  Login
 Home > Interview Questions > C# Interview Questions > In which cases you use override and new ...

In which cases you use override and new base ?

Interview question and answer by: Bharathi Cherukuri | Posted on: 4/23/2012 | Category: C# Interview questions | Views: 530 | | Points: 40


Answer:

You can use the new modifier to explicitly hide a member inherited from a base class.
To hide an inherited member, you have to declare it in the derived class using the same name, and modify it with the new modifier.

Asked In: Many Interviews | Alert Moderator 
Found interesting? Add this to:


>> Write Response - Respond to this post and get points

Even more ... | Submit Interview Questions and win prizes!

More Interview Questions from Bharathi Cherukuri

Even more ... | Submit Interview Questions and win prizes!


About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/20/2013 11:04:24 PM