Can you allow class to be inherited, but prevent the method
from being over-ridden?
Answer Posted / guest
Yes, just leave the class public and make the method sealed.
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
Can we inherit static class in c#?
Why is c# better than java?
When should I throw an exception?
What is gridview c#?
What do you mean by expression tree?
Hi Friends, I am going through Siemens Interview Procedure from last 1+1/2 months. I went through 1 written + 2 Technical + 1 Managerial Round process after which I got call from HR informing that "you are selected and we would like to meet you for HR round". HR round was very nominal compared to MR. HR Round last for hardly 5 mins. They told me that you will get the final result on Friday. Still I have not received any feedback from them. Please help!!!
What does ienumerable mean?
Is char * null terminated?
What sort algorithm does c# use?
Enlist the different types of classes in c#?
what is an exception in .net?
What is for loop in c#?
In .Net, what is an assembly? Also explain the type of assembly.
Define c# delegate?
What is .cshtml file?