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
Why do we need interfaces in c#?
Explain how do you directly call a native function exported from a dll?
hi, is compulsory .net knowledge need for biztalk server training. if need, how far?.tell me some info abt real time instructors in hyd or other?
Can a method return multiple values in c#?
How can you prevent escaping on backslashes in C# with string definitions?
Explain the difference between directcast and ctype.
What is the implicit name of the parameter that gets passed into the set method/property of a class?
What is difference between interface and abstraction?
How assembly versioning in .NET prevent DLL Hell problem?
what are pointer types in c#
Why do we need collections in c#?
Write a syntax for writing a event delegate.
What is datetime minvalue in c#?
What is difference between private and static constructor?
What are the benefits of using the aggregate method in linq?