Why we can't create the object of abstract class ?
Answer Posted / vijay
Hello all am vijay
I can say most of the above answers are partially correct
but not upto the mark.
The exact reason is .
The function address of the pure virtual function is not
put into VTABLE of the abstract class , hence VTABLE of the
abstract is incomplete.
So when the user tries to create an instance of the
abstract class the compliler will throw an error.
| Is This Answer Correct ? | 32 Yes | 7 No |
Post New Answer View All Answers
What is the difference between a constant and a static readonly field?
What is difference between method overriding and method overloading?
What is indexer c#?
What are the different types of constructors in c#?
What is default method in c#?
What is global namespace in c#?
How to exclude a property from xml serialization?
What is Web.config?
Can abstract class instantiated c#?
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 use of ispostback in c#?
What is datetime parse in c#?
Explain the difference between a sub and a function in c#.
How do you escape c#?
Why ref is used in c#?