Why an instance can't be created for an abstract class

 Posted by deccansoft on 9/20/2010 | Category: C# Interview questions | Views: 901

Instance of Abstract class cannot be created because an abstract class
may (not compulsory) have some abstract members i.e. members whose
declaration is provided and implementation is not and if the instance of
this class is created, that abstract method would be invoked and it
doesnt have implementation and this would create a problem.

To avoid this kind of problem the compiler gives error if we try to
create the instance of abstract class (which can also be said as
incomplete class)

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response