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
Explain synchronous and asynchronous operations?
Why do you need boxing in c#?
What is sorted list in c#?
How do you implement thread synchronization in c#?
What is the use of constructor in c# with example?
Ho we can see assembly information?
What do you know about Translate Accelerator?
What are logical operators in c#?
Explain namespaces in c#.
What is meant by unicode characters?
How do I stop my console from closing in c#?
How can you force derived classes to provide new method implementations for virtual methods?
What are the types of comments in c#?
Which of the following operations can you not perform on an ado.net dataset?
Is php easier than c#?