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 is generic types in c#?

931


What will be the output of the following code?

919


What is the difference between “dispose” and “finalize” variables in c#?

1004


What is a type c#?

959


What is pure abstract class in c#?

893


What are the types of serialization?

958


In which way you can convert a value-type to a reference-type?

964


What is difference between sleep () and wait ()?

923


What is the use of static members with example using c#.net.

912


What is a constructor in c#?

1400


Write one code example for compile time binding and one for run time binding? What is early/late binding?

1018


What are the namespace level elements?

973


In how many ways you can overload a method?

1057


How do I do a case-insensitive string comparison?

1049


What is primitive types in c#?

863