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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does dictionary work in c#?

936


How is lazy loading achieved?

980


Name some properties of array.

1026


What is sealed class in c#?

953


What are concrete classes?

946


What are winforms in c#?

962


What is the difference between writeline and write in c#?

907


What are the types of access modifiers?

957


Are c# objects passed by reference?

940


What is .cshtml file?

1052


Explain About web methods and its various attributes

1040


What is the difference between protected and private?

979


Explain About remoting and web services. Difference between them

999


What does m mean in decimal c#?

948


What are the 2 broad classifications of fields in c#?

971