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


Please Help Members By Posting Answers For Below Questions

How many destructors can a class have?

587


Can an int be negative c#?

581


What is the purpose of private constructor in c#?

544


how to implement a web service in .net

468


What are methods in C#?

563






To allow an element to be accessed using a unique key which .NET collection class is used ?

616


Name some properties of thread class.

547


How can I create image pieces/sub image?

482


How does inheritance work in c#?

619


Explain the difference between “system.array.clone()” and “system.array.copyto()” in c#?

508


What is a console in c#?

482


What does static mean in c sharp?

569


Is there an equivalent to the instanceof operator in visual j++?

515


What is a protected class in c#?

486


what is the index value of the first element in an array?

508