Answer:
First of all,we can not create static class object.
But if we explicitly create object,then at compile-time,it will give error as:
Static classes cannot have instance constructors
Meaning that,static class do not have public constructors.It always as private constructors.So this is the reason,we can not create object of static classes.
Asked In: Many Interviews |
Alert Moderator