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
Which config file has all the supported channels/protocol?
Is c# and c sharp same?
what are nullable types in c#
what is a constructor? What is a destructor?
Why do I get a security exception when I try to run my c# app?
What is an event in c#?
Does c# have its own class library?
What's the difference between a method and a procedure?
How do I create a delegate/multicastdelegate?
There were a lot of questions asked, so I will list the topic (and add a what is "topic" and know pros/cons). Extreme programming, what is a transaction, various SDLC design approaches, what is a namespace, define a good test case, what is a stored proc, webservice? design patterns? linker? compiler? access modifiers? stack vs. queue? arrays vs. linked lists? sorting algorithms? recursion? OOP principles?
How do I do implement a assert?
Why is it important to override gethashcode when equals method is overridden?
Does c# have primitives?
Different between method overriding and method overloading?
What is ioc containers c#?