Q. Which is the correct way to declare an object of the class in C#?

  • (A) Class_Name Object_Name = new Class_Name();
  • (B) Class_Name Object_Name;
  • (C) new Object_Name as Class_Name();
  • (D) Both A and B
πŸ’¬ Discuss
βœ… Correct Answer: (D) Both A and B

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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