Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is the syntax for calling an overloaded constructor within a constructor (this() and constructorname() does not compile)?

950


Explain the difference between abstract class and interface in .net?

910


Can mvc be used for desktop applications?

955


Whats an assembly? Describe the importance of assembly?

906


What is entity framework c#?

870


Why do we need singleton pattern in c#?

959


What is a clr host?

957


What is the difference between decimal and integer?

1104


What are the Types of assemblies that can be created in dotnet

1153


What is eager loading in c#?

881


Is struct object oriented?

885


What is difference between hashtable and dictionary in c#?

952


What is the difference between proc. Sent by val and by sub?

993


What does type safe mean in c#?

987


What is xamarin used for?

932