How to make a class non-inheritable other than sealed?
Answer Posted / divya
if we use private constructor we cant make an instance of the class, but still we can inherit it
| Is This Answer Correct ? | 13 Yes | 5 No |
Post New Answer View All Answers
What is a method signature in c#?
What you mean by delegate in c#?
What do u mean by delegation?
What is writeline?
What is a thread? What is multithreading?
What is the difference between early binding and late binding in c#?
What is function c#?
Explain manifest & metadata in c#.
What is the difference between package and interface?
What is difference between constants and read-only?
Explain the difference between object type and dynamic type variables in c#?
How can I make sure my c# classes will interoperate with other .net languages?
can you allow a class to be inherited, but prevent the method from being over-ridden?
These questions were asked me in a technical interview: •If we deploy an application on multiple server (like database server, web server) then, each request should be redirected to proper server, then how you will handle it in your code? •How security pinholes will be handled in an application? •What things should be considered while writing a web application? •How will you do load/performance testing of web application? Which framework you will use for it? •How will you implement a cache for results which require a DB access? Please let me know how to write an web application considering all these points. I am not so much aware of architechural design of web application. Your guidelines will be helpful.
What is the advantage of extension method in c#?