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 / sujai cn

By using NEW key word with implementation of method (which
is declared as virtual in base class) in the derived class

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are c# strings immutable?

889


What does the keyword “virtual” declare for a method or property?

952


Explain publishers and subscribers in events.

953


In which order the destructor is called for an inherited class?

983


How does bubble sort work?

904


What is difference between destructor and finalize?

925


Why do we use threads in c#?

992


What is reference c#?

965


What is default constructor c#?

962


What is instantiating a class in c#?

1022


What is console read in c#?

897


What are sorted lists?

902


What is a partial method?

961


Can class inherit from struct c#?

971


Is string a class in c#?

839