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 syntax for calling an overloaded constructor within a constructor (this() and constructorname() does not compile)?
Explain the difference between abstract class and interface in .net?
Can mvc be used for desktop applications?
Whats an assembly? Describe the importance of assembly?
What is entity framework c#?
Why do we need singleton pattern in c#?
What is a clr host?
What is the difference between decimal and integer?
What are the Types of assemblies that can be created in dotnet
What is eager loading in c#?
Is struct object oriented?
What is difference between hashtable and dictionary in c#?
What is the difference between proc. Sent by val and by sub?
What does type safe mean in c#?
What is xamarin used for?