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 are get and set in c#?

948


What is delegates and events?

864


What do multicast delegates mean?

936


What are the advantages of clr procedure over t-sql procedure?

948


In .Net, what is an assembly? Also explain the type of assembly.

859


What is difference between overloading and short circuiting?

931


What is difference between web and window application?

799


What does immutable mean in c#?

899


What is anonymous methods in c#?

1010


How do generics work in c#?

862


what is a static constructor?

1144


Expalin the way you implement inheritance by using VB.NET/C#?

911


What is difference between method overriding and method overloading?

985


How many digits is a 32 bit number?

840


What is the namespace for the thread class?

887