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

Does a loop recorder have to be removed?

606


Explain how obfuscator works in .net

559


What is garbage collector and where should you use in .NET?

527


What is dapper in c#?

476


What is the difference between an application domain and a process?

488






What is the keyword used to prevent a class from being inherited by another class?

680


What is encapsulation in csharp?

525


What is the difference between list and arraylist c#?

536


From which base class do all Web Forms inherit from?

534


How do you use nullable?

514


Do unused Namespaces in c# affect run-time performance?

530


What is data binding c#?

540


what is difference between destruct or and garbage collection ?

520


What is default class in c#?

515


Explain what are three test cases you should go through in unit testing?

510