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

What are properties in c#. Explain with an example?

957


What is a protected class c#?

936


Which attribute is used in order that the method can be used as webservice?

972


What is array c#?

967


What is polymorphism and its types in c#?

945


What is difference between C# and VB.NET?

1252


Can abstract classes be final?

997


Can we have multiple constructors in a class c#?

961


What are functions c#?

1036


What is an argument in c#?

1004


What is static void main in c#?

1061


What is the difference between C# 3.5 and C# 4.0?

994


Is array a collection c#?

960


How to exclude a property from xml serialization?

1057


What is use of singleton class in c#?

1040