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

To create a localized application which namespaces are necessary?

986


What is c sharp used for?

902


What is the diff between the System.Array.CopyTo() and System.Array.Clone()?

993


What is sqldataadapter in c#?

906


What is sorted list in c#?

898


Explain the three test cases in unit testing?

1013


What is private and shared assembly?

1000


What is escape sequence in c#?

1017


How to parse a date time string?

1007


What is a template class?

1019


Can interface inherit class in c#?

977


What is a thread? What is multithreading?

938


What is orm in c#?

969


Why static constructor is parameterless in c#?

1052


Explain polymorphism in c# with a simple example?

934