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
Can bool be null c#?
What is datatable in c#?
How do you declare an arraylist?
What is parameters in c#?
What are the principles of delegation?
Can abstract class be instantiated c#?
Explain the process of polymorphism with an example?
What is the different types of private assembly and shared assembly?
Can we maintain state in webservice?
What is the default scope of a class in c#?
What is type cast in C#?
Why we use get set in c#?
Can struct be static in c#?
what is .NET framework architecture ??
What is clr namespace?