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
How to get the sum of last 3 items in a list using lambda expressions?
What is a thread? What is multithreading?
What is thread.sleep()?
What do you mean by object pooling?
What is a deadlock lock?
What is an indexer in c#?
What is action c#?
Can a static class contain non static members?
What is assembly version series sequence?
What is function and method in c#?
What are bitwise logical operators?
Can hashset contain duplicates c#?
1. Describe page life cycle?
how to sort an array in c#
What is difference between interface and abstraction?