A Admin • 833K Points Coach Q. Which of the following is the correct way to create an object of a class in C++? (A) class obj; (B) obj = new class; (C) class obj = new class(); (D) ClassName obj; Correct Answer - Option(D) Views: 16 Filed under category C++ Hashtags: Share Manage Tags
Discusssion
Login to discuss.