why we can't create an object for a static class??
what is the reason behind this?
Answer Posted / pushparaj pentakota
static blocks and static classes are executed before
constructor execution but object can be created while
executing the constructor only but static blocks are exected
before executing construtor so we can't create an object on
static classes.
| Is This Answer Correct ? | 23 Yes | 2 No |
Post New Answer View All Answers
what is the scope of anonymous type ?
What is difference between constants and read-only?
Define collections?
What is the advantage of dependency injection?
How do you achieve polymorphism in c#?
Why main method is static in c#?
Define an escape sequence, name few strings in escape sequence?
What is a .aspx file?
What is token in c#?
What is the task perform by clr?
What are extensions methods in c#?
What are the Features in .net framework 1.1
Distinguish between system.string and system.text.stringbuilder classes?
Can an abstract class inherit from another abstract class c#?
What are anonymous types in c#?