Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Can you allow class to be inherited, but prevent the method
from being over-ridden?

Answer Posted / anubhav gupta

We can use shadowing concept.
For shadowing use New keyword in derived class method.
Through this we can prevent the method from being over
ridden.

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe the difference between inline and code behind - which is best?

1123


What are the different types of assembly?

1054


List the 5 different access modifiers in c#?

927


What is deadly diamond problem?

979


Explain about accessibility modifier 'protected internal'?

1013


What is the difference between values and reference types?

1003


How do you sort an array in c#?

1012


What is a collection in c#?

909


What is static and use of it?

989


What is a namespace server?

920


What is the use of parse in c#?

912


What is the difference between firstordefault and first?

907


Why do we use void in c#?

871


What is unrecognized escape sequence in c#?

936


Can struct be static in c#?

1073