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 a method c#?
Why do we need to override in c#?
Why do we need interface in c#?
what is object-oriented programming (oop) language?
Define acid rule of thumb for transactions in c#.
What is an enumerator in c#?
When Should You Call The Garbage Collector In .net?
What is a type c#?
From a versioning perspective, what are the drawbacks of extending an interface as opposed to extending a class?
Which control cannot be placed in mdi?
What is a service layer c#?
How many root nodes are there in an xml document?
What is a decimal in c#?
What are the different approaches of passing parameters to a method?
What is Reflection in .NET? Namespace? How will you load an assembly which is not referenced by current assembly?