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
What is difference between new and override in c#?
How does bubble sort work?
Which config file has all the supported channels/protocol?
What is literal in c#?
What is a delegate? Explain.
What is the difference between finalize() and dispose()?
Why should I use interface in c#?
What is instantiating a class?
What are mutable and immutable types in c#?
What are the Types of configuration files and their differences
What is the difference between malloc () and new?
If c# destructors are so different to c++ destructors, why did ms use the same syntax?
What is CASPOL?
Does c# have its own class library?
Why do we use threads in c#?