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 difference between structure and class in c#?
Do extension methods have to be static?
what is difference between destruct or and garbage collection ?
What is console readkey in vb net?
How can we sort the elements of the array in descending order?
What Is A Satellite Assembly?
Enlist all the components of an ado.net framework?
Can we override constructor in c#?
What is the advantage of dependency injection?
Can hashtable have duplicate keys in c#?
Which is faster hashtable or dictionary?
What is streamreader/streamwriter class?
Can abstract class be sealed in c#?
How string definitions will prevent escaping on backslashes in C#?
What is the difference between method parameters and method arguments. Give an example?