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

How do you pronounce c#?

911


What is autopostback in c#?

961


What are mutable and immutable types in c#?

968


How do I port "synchronized" functions from visual j++ to c#?

904


Explain the use of SN.exe

1103


How do I create a single-file assembly?

1030


Please explain value types and reference types used in c#?

874


What is typeof c#?

961


Between windows authentication and sql server authentication, which one is trusted and which one is untrusted?

981


what is generics? can u explain 5 to 6 examples on generics that covers class,method,structure,list,delegates?

1951


What are the Features in .net framework 1.1

996


How long will it take to learn c#?

970


What is a byte in c#?

987


Explain deadlock?

1014


Why we use anonymous methods in c#?

953