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
How do I open the console window?
What is reflection in c#?
What is Global Assembly Cache (GAC) and what is the purpose of it? (How to make an assembly to public? Steps) How more than one version of an assembly can keep in same place?
How do I create a single-file assembly?
What happens if you add duplicate elements to a set?
What is an inheritance ?Give an example in which inheritance is used?
What is sqlcommandbuilder c#?
What is a destructor in c#?
Explain About multi level and multiple inheritance how to achieve in .net
What is the usage of Enumeration in C# Programming and is it good to use or not ?
What does readonly mean in c#?
Is c# slower than java?
Which programming language is best for desktop applications?
What are the advantages of generics in c#?
Explain the difference between object type and dynamic type variables in c#?