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 difference between destructor and finalize?
Is there regular expression (regex) support available to c# developers?
How do you set a class path?
How to prevent the error while updating ui control from another thread?
Differentiate between response.expires and response.expiresabsolute?
What is difference between the "throw" and "throw ex" in .net?
What is new method in c#?
what is IDisposal interface,IComparable,IEquatable,IFormatable
What are the different types of constructors?
What are virtual destructors?
What is sorted list in c#?
What is the syntax for calling an overloaded constructor within a constructor (this() and constructorname() does not compile)?
What is a int in c#?
What are the collection types can be used in c#?
What is parallel programming in c#?