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...

what is the purpose of new keyword while creating an object?

Answer Posted / noor mohammad

Types cannot be used without being instantiated. To
instantiate a type, you use the new operator, which invokes
the logic specified in the constructor. After completion,
the constructor returns a new instance of the specified
type—this instance can now store data as your C# program
executes.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does break do in loop?

878


How is lazy loading achieved?

869


Does c# support c type macros?

868


what is the index value of the first element in an array?

879


What is the difference between IEnumerator and IEnumerable?

1113


How do I open the console?

934


What is dataview c#?

810


To whom a method is accesssed if it is marked as protected internal ?

1021


What do you mean by jagged arrays in c#?

842


What is the main purpose of xml?

873


What is a thread? What is multithreading?

890


For read-only operation which property you have to designated?

971


How do you declare a variable in c#?

918


Is python easier than c#?

884


How do I stop my console from closing in c#?

859