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 is task parallel library?
Can we have multiple threads in one app domain?
What does type safety mean?
What is serialization of data?
What is the meaning of 0 in c#?
Enlist all the components of an ado.net framework?
What are extender provider components?
What are Regex / regular expressions ?
Does c# have primitives?
Is there regular expression (regex) support available to c# developers?
What is difference between yielding and sleeping?
Is visual c# free?
What are the advantages of clr procedure over t-sql procedure?
Can an int be negative c#?
What is namespace explain with example?