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

Suppose you have already existing application with Visual Studio 6 (VB 6, InterDev 6) and this application utilizes Windows 2000 COM+ transaction services. With this example how can you approach migrating this application to .NET?

0 Answers   Siebel,


What is a trace and asset? Explain some differences?

0 Answers   Accenture,


Why hashtable is thread safe in c#?

0 Answers  


What is the difference between static and private constructor in c#?

0 Answers  


What is difference between comparable and comparator?

0 Answers  






Can you inherit multiple interfaces?

3 Answers  


How more than one version of an assembly can keep in same place?

0 Answers  


How do switch statements work?

0 Answers  


What is delegate in c# interview questions?

0 Answers  


What is the difference between console and windows application?

0 Answers  


What is string class in c#?

0 Answers  


What is the C# syntax to catch any possible exception?

0 Answers   Siebel,


Categories