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
To create a localized application which namespaces are necessary?
What is c sharp used for?
What is the diff between the System.Array.CopyTo() and System.Array.Clone()?
What is sqldataadapter in c#?
What is sorted list in c#?
Explain the three test cases in unit testing?
What is private and shared assembly?
What is escape sequence in c#?
How to parse a date time string?
What is a template class?
Can interface inherit class in c#?
What is a thread? What is multithreading?
What is orm in c#?
Why static constructor is parameterless in c#?
Explain polymorphism in c# with a simple example?