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 the purpose of ienumerable in c#?
What is parallel foreach c#?
Can constructor be private c#?
What is datareader c#?
Is array a list?
What is difference between ienumerable and ienumerator in c#?
What will be the output of the following code?
What is parallel foreach in c#?
What is pure abstract class in c#?
What is difference between virtual and override in c#?
What are the 3 logical operators?
What are delegates in C#?
What are the advantages of clr procedure over t-sql procedure?
In which order the constructor is called for an inherited class?
Difference between value and reference type.