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 and operator in c#?
What is the predicate of a sentence?
What is difference between string and stringbuffer in c#?
Distinguish between finally and finalize blocks?
What to implement on my class Finalize or IDisposable
What is the use of regex in c#?
Do while loops yes or no c#?
If a child class instance is created, which class constructor is called first - base class or child class?
Define method overloading in c#?
What are async and await?
Tell us something about static linking and dynamic linking?
What is difference between code access and role based security?
What are the Types of values mode can hold session state in web.config
Why do we use methods in c#?
What are the applications of c#?