πŸ“Š C#
Q. Which of the following statements is correct about the C#.NET code snippet given below? class Student s1, s2; // Here 'Student' is a user- defined class. s1 = new Student(); s2 = new Student();
  • (A) Contents of s1 and s2 will be exactly same.
  • (B) The two objects will get created on the stack.
  • (C) Contents of the two objects created will be exactly same.
  • (D) The two objects will always be created in adjacent memory locations.
πŸ’¬ Discuss
βœ… Correct Answer: (C) Contents of the two objects created will be exactly same.

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
169
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
81%
Success Rate