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 difference between destruct or and garbage collection ?

990


What is difference between a constant and read-only in C#?

1016


What is the syntax for calling an overloaded constructor within a constructor (this() and constructorname() does not compile)?

1000


When a Static Constructor is called in a Class?

1086


Can properties be overloaded in c#?

1012


How do I edit a dll file?

931


Which is better python or c#?

915


What does immutable mean in c#?

1018


What is difference between first and firstordefault?

963


What is jit? What are the different types of jit?

1058


Is c# substring zero based?

1020


What is use of hashtable in c#?

911


What is the difference between interface and abstract class in c#?

972


Is string null or empty?

969


Explain async and await?

1932