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?

Answers were Sorted based on User's Feedback



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

Answer / vasantha

new keyword is used the memory is allocated at runtime for
object

Is This Answer Correct ?    19 Yes 2 No

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

Answer / 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

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

Answer / mahendra

creating object memory and non static variable memory with default

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

Explain the mechanism of VB.NET/C# achieve polymorphism?

0 Answers   Siebel,


If I want to override a method 1 of class A and in class b then how do you declare ?

4 Answers   MMTS,


Indexers in c#?

8 Answers   Intaglio, Microsoft, TCS,


Differentiate between object pooling and connection pooling in c#?

0 Answers  


What is asax file in c#?

0 Answers  


What are the differences between static, public and void in c#?

0 Answers  


What are the basics of c#?

0 Answers  


What method is used to sort the elements of the array in descending order?

0 Answers   Siebel,


What is dbcontext c#?

0 Answers  


How structure objects are destroyed? As GC releases only the objects in stack, and structure is a value type and stored in heap. So how structure objects are released?

2 Answers  


Constructor to an arbitrary base constructor?

0 Answers  


What are iterators?

5 Answers   TCS,


Categories