what is the purpose of new keyword while creating an object?
Answers were Sorted based on User's Feedback
Answer / vasantha
new keyword is used the memory is allocated at runtime for
object
Is This Answer Correct ? | 19 Yes | 2 No |
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 |
Answer / mahendra
creating object memory and non static variable memory with default
Is This Answer Correct ? | 0 Yes | 0 No |
How do I move from one form to another in c#?
What are the steps to create an assembly and add it to the gac?
What are the advantages of using assemble language programming?
Is a char?
i want the csharp questions&answeres
How?s method overriding different from overloading?
Explain ACID rule of thumb for transactions.
Is there an equivalent of exit() for quitting a c# .net application?
What is the use of ispostback in c#?
What is the difference between protected and private?
What is Event - Delegate?
What is difference between "as" and "is" keyword?