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

Explain how can I get around scope problems in a try/catch?

490


What is difference between C# and VB.NET?

516


What is generic method in c#?

497


Describe the parts of assembly.

526


What is multicast delegate in c# ?

525






What is the use of nullable types in c#?

490


What is difference between singleordefault and firstordefault?

487


Define a manifest in .net?

540


What does private void mean in c#?

544


Difference between StackPanel and RelativePanel ?

582


If a.equals(b) is true then a.gethashcode & b.gethashcode must always return same hash code.

560


Can we inherit sealed class in c#?

473


Can u list some style properties of List Box?

495


Is it possible to nest cfml conditional tags?

544


How long does it take to learn c# programming?

476