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

Can we inherit abstract class in c#?

920


Explain the difference between boxing and unboxing.

1015


What are custom exceptions in C#?

1024


Is array immutable in c#?

875


How do you read an Excel sheet in C#?

995


What is int32?

905


What is difference between field and property in c#?

835


What is a service layer c#?

859


What are the 3 types of comments in c#?

948


Why ienumerable is used in c#?

881


What does addressof operator do in background ?

1009


What does it mean?

938


What are access modifiers used for?

1084


What exactly happens when we debug and build the program?

2578


What is the task perform by clr?

1049