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
Which are the access modifiers available in c#?
Define satellite Assembly in .NET?
What is whitespace in c#?
If dll and exe files are same it means you can deploy both the files in gac?
What is difference between ienumerable and list in c#?
What is iformatprovider in c#?
What is private and shared assembly?
What are sorted lists?
How can we set class to be inherited, but prevent the method from being over-ridden?
Can class be protected in c#?
What are All kind of access specifiers for a class and for methods
What is a .exe extension files? How is it similar to .dll extension files?
What are generics in c#.net?
Define a class and an object?
What is a singleton unity?