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 purpose of ienumerable in c#?

1013


What is parallel foreach c#?

951


Can constructor be private c#?

884


What is datareader c#?

914


Is array a list?

878


What is difference between ienumerable and ienumerator in c#?

937


What will be the output of the following code?

927


What is parallel foreach in c#?

974


What is pure abstract class in c#?

904


What is difference between virtual and override in c#?

872


What are the 3 logical operators?

967


What are delegates in C#?

1024


What are the advantages of clr procedure over t-sql procedure?

999


In which order the constructor is called for an inherited class?

1054


Difference between value and reference type.

920