Can you allow class to be inherited, but prevent the method
from being over-ridden?
Answers were Sorted based on User's Feedback
Answer / umesh
Yes, just leave the class public and make the method sealed.
Is This Answer Correct ? | 17 Yes | 1 No |
Answer / anubhav gupta
We can use shadowing concept.
For shadowing use New keyword in derived class method.
Through this we can prevent the method from being over
ridden.
Is This Answer Correct ? | 6 Yes | 3 No |
In which format you can pass the value in the sleep function?
What?s the data provider name to connect to Access database?
Define a strong name in .net?
What?s the top .NET class that everything is derived from?
Explain the three services model (three-tier application). Presentation (ui), business (logic and underlying code) and data (from storage or other sources).
What is extended class in c#?
What are data types with examples?
What does Dispose method do with the connection object?
What is difference between dictionary and hashtable in c#?
if we inherit class in stack so object of stack will store in stack or heap? as class a { int s; public aa(){} } stack mystack:a { } mystack obj; ans: about obj
What are data types examples?
Difference between dispose and destructor?