why we can't create an object for a static class??
what is the reason behind this?
Answer Posted / pushparaj pentakota (anakapall
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 ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is asp net c#?
Can we change static variable value in c#?
What does async mean in c#?
Difference between type constructor and instance constructor? What is static constructor, when it will be fired? And what is its use?
What are the advantages of generics in c#?
What is difference between override and new in c#?
Why is c# good for games?
What is the differences between datagrid, datalist and repeater in .net?
What does mean before a string in c#?
Why delegates are type safe in c#?
Explain about finalize method?
Why delegates are required?
Explain how can I get around scope problems in a try/catch?
How many bytes is an int?
What is unsigned int?