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

How do I move from one form to another in c#?

0 Answers  


What are the steps to create an assembly and add it to the gac?

0 Answers  


What are the advantages of using assemble language programming?

0 Answers   Ittiam Systems,


Is a char?

0 Answers  


i want the csharp questions&answeres

0 Answers   IBM, Siemens,


How?s method overriding different from overloading?

3 Answers  


Explain ACID rule of thumb for transactions.

3 Answers  


Is there an equivalent of exit() for quitting a c# .net application?

0 Answers  


What is the use of ispostback in c#?

0 Answers  


What is the difference between protected and private?

0 Answers  


What is Event - Delegate?

0 Answers  


What is difference between "as" and "is" keyword?

1 Answers  


Categories