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
Is c# a keyword?
What does string intern do?
What is difference between list and dictionary in c#?
How do you declare a method in c#?
How would you describe encapsulation in c#?
Does a loop recorder have to be removed?
What is an actual parameter?
What are floating point numbers?
Do vs while c#?
What do you mean by stack and heap in c#?
What is the difference between ienumerable and enumerator?
What is iformatprovider in c#?
How much time will it take to learn unity?
Is null == null c#?
what is IComparable