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 the difference between structure and class in c#?

967


Do extension methods have to be static?

1022


what is difference between destruct or and garbage collection ?

942


What is console readkey in vb net?

1075


How can we sort the elements of the array in descending order?

937


What Is A Satellite Assembly?

965


Enlist all the components of an ado.net framework?

867


Can we override constructor in c#?

916


What is the advantage of dependency injection?

992


Can hashtable have duplicate keys in c#?

889


Which is faster hashtable or dictionary?

966


What is streamreader/streamwriter class?

923


Can abstract class be sealed in c#?

881


How string definitions will prevent escaping on backslashes in C#?

989


What is the difference between method parameters and method arguments. Give an example?

930