Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

What does the following C# code imply?
csharp abc;
abc = new charp();

What does the following C# code imply?
csharp abc;
abc = new charp();
a) Object creation on class csharp
b) Create an object of type csharp on heap or on stack depending on the size of object
c) create a reference c on csharp and an object of type csharp on heap
d) create an object of type csharp on stack

Answer: c
Explanation: create a reference c on csharp and an object of type csharp on heap

Join The Discussion