why we can't create an object for a static class??
what is the reason behind this?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / rahul
Because static method will have defined / stored entry point.
so while calling it , it's entry point is sufficient , without creating an object.
that's why no need to create object
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / luckraj
Static class does not allow to create
any object.....
| Is This Answer Correct ? | 9 Yes | 9 No |
Answer / 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 |
Why do we need constructor?
If you donot specify an access modifier for a method, what is the default access modifier?
write program in C# for palindrome? (aug 2009) write program in C3 for generating below output?(aug 2009) # # # # # # # # # #
Why delegates are type safe?
what is a constructor? What is a destructor?
If I return out of a try/finally in c#, does the code in the finally-clause run?
How do you inherit from a class in C#?
can it possible to acees the virthual method using the override method object? plz give me the example
Explain ACID rule of thumb for transactions.
an object,class is value type or refarance type. ?
How many parameters can a method have c#?
syntax for writing private method in a interface
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)