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

Answer Posted / arunkumar

s it is possible by doing Sealed keyword to the method in
first class

Is This Answer Correct ?    21 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are methods c#?

655


What is the difference between Static, Const and read only?

827


What is the relationship between a process, application domain, and application?

720


Can a class have more than 1 destructor?

735


What is the difference between out and ref in c#?

679


What is addressof operator?

719


Is python easier than c#?

715


Can property be private in c#?

681


How to implement delegates in c#.net

752


What is an interface class in c#?

747


Why do we use virtual methods in c#?

697


Can you describe iuknown interface in short?

861


What is the main usage of keyword “virtual” ? How does it work for a method or property?

710


Does c# support templates?

751


What is gac? What are the steps to create an assembly and add it to the gac?

693