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

What is datetime minvalue in c#?

976


What is data types in c#?

909


What are Indexers in C#?

1002


How do you specify a custom attribute for the entire assembly?

905


Define constructor in c#.

861


Difference between type constructor and instance constructor? What is static constructor, when it will be fired? And what is its use?

1016


What is wpf application in c#?

817


Why are mutable structs evil?

917


What are annotations in c#?

886


Is typeof c#?

944


Does c# support multiple inheritance (mi)?

896


What is type keyword in c#?

883


What types of object can I throw as exceptions?

893


What is a template class?

941


How does dependency injection work c#?

889