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 scope of anonymous type ?

944


What is difference between constants and read-only?

868


Define collections?

881


What is the advantage of dependency injection?

933


How do you achieve polymorphism in c#?

844


Why main method is static in c#?

888


Define an escape sequence, name few strings in escape sequence?

883


What is a .aspx file?

818


What is token in c#?

915


What is the task perform by clr?

974


What are extensions methods in c#?

818


What are the Features in .net framework 1.1

938


Distinguish between system.string and system.text.stringbuilder classes?

879


Can an abstract class inherit from another abstract class c#?

907


What are anonymous types in c#?

846