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

Is c# pass by reference?

840


What is pure abstract class in c#?

851


Is hashset serializable c#?

910


What is inumerable?

961


Classes and structs can be declared as static, is this statement true or false?

978


What is base class in c#?

949


What is difference between abstraction and encapsulation in c#?

943


Explain the security with aop?

1006


Is c# different than c++?

836


What does console writeline do?

846


Can you specify nested classes as partial classes?

913


What is xor operator in c#?

892


Define an escape sequence, name few strings in escape sequence?

882


What are the value types in c#?

897


What is deferred execution in c#?

861