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 data adapter in c#?

619


What is desktop example?

672


What are cshtml files?

644


Does c# have a 'throws' clause?

754


What is default parameter in c#?

697






Can you inherit multiple abstract classes in c#?

684


What is global namespace in c#?

680


In which way a two-dimensional array declared in C#?

673


What are the return types in c#?

686


What is a partial class. Give an example?

674


Does c# support multiple class inheritance?

798


What is instantiating a class?

692


What is clr in c#?

625


What is a callback c#?

728


How can you set image source dynamically from c# application to ”test.png” file?

821