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
How does dictionary work in c#?
How is lazy loading achieved?
Name some properties of array.
What is sealed class in c#?
What are concrete classes?
What are winforms in c#?
What is the difference between writeline and write in c#?
What are the types of access modifiers?
Are c# objects passed by reference?
What is .cshtml file?
Explain About web methods and its various attributes
What is the difference between protected and private?
Explain About remoting and web services. Difference between them
What does m mean in decimal c#?
What are the 2 broad classifications of fields in c#?