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
What are extender provider components?
What is the difference between internal and protected in c#?
Which is faster hashtable or dictionary?
What is a console file?
Explain the types of errors in c#?
What is the difference between class and namespace?
Is Facebook a desktop application?
What is interpolation in programming?
What is generic delegate in c#?
What is the use of GC.KeepAlive Method?
What is the difference between xml documentation tag?
What is visual c# net?
Constructor to an arbitrary base constructor?
Can we use "this" command within a static method?
What is the difference between method parameters and method arguments. Give an example?