Why we can't create the object of abstract class ?

Answer Posted / rajesh kamble

abstract class contain one or more pure vertual
function ,this types of class contain only the declaration
of method ,it do not have defination of any method,when we
define any abstract class object it not allocate the memory
to any object , and when any object of class will created
it first initialise memory for class and then methods. and
look for the defination for that, for that point of view
when we create object of any abstract class method
defination will not present and memory cannot be allow to
object. any by the compiler it cause the error.

Is This Answer Correct ?    8 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sqldataadapter in c#?

491


What is an ienumerable in c#?

548


Explain the differences between static, void and public in c#?

530


What is the namespace for the thread class?

520


Different between method overriding and method overloading?

488






Define a partial class?

506


What’s thread.sleep() in threading ?

511


What is attribute and reflection in c#?

480


What is c-sharp (c#)?

538


what is IEquatable

569


What is the predicate of a sentence?

493


Structs are largely redundant in c++. Why does c# have them?

757


Is c sharp and c# are same?

514


Can arraylist store different data types in c#?

475


What is gac? What are the steps to create an assembly and add it to the gac?

490