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...

is it possible to inherit a class but methods declared in
the class should not be inheritable i possible how?

Answer Posted / vishal

That's Correct.
Using private keyword in the method signature is a way of
preventing inheritance of that method in child class.

Please note that using "sealed" keyword in method signature
only prevents overriding of the method in child class, but
the method is still inheritable in the child class.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by collections in c#?

864


how to create crystal reports give one detail example(i want to view age category report) please give suitable example in my small knowledge

2023


What is a constructor in c#?

1428


What is args c#?

949


What is a streamwriter in c#?

935


What does console readline do?

880


Can you mark static constructor with access modifiers?

982


What is the difference between a field and a property in c#?

938


Compare and contrast between the System.Array.CopyTo() and Clone()?

981


What exception can an overridden method throw in comparison with the method it is overriding?

877


What is new method in c#?

933


Can scriptable objects have methods?

904


How much time will it take to learn unity?

938


What is virtual in c#?

884


What are the properties of a string class?

1021