Discussion :: Classes and Objects
-
Which of the following statements are correct about the C#.NET code snippet given below?
sample c; c = new sample();
- It will create an object called sample.
- It will create a nameless object of the type sample.
- It will create an object of the type sample on the stack.
- It will create a reference c on the stack and an object of the type sample on the heap.
- It will create an object of the type sample either on the heap or on the stack depending on the size of the object.
Answer : Option B
Explanation :
No answer description available for this question.
Be The First To Comment