πŸ“Š Perl
Q. What is the correct syntax for creating a new object in Perl?
  • (A) var object_name = new class_name()
  • (B) new object_name = class_name()
  • (C) my object_name = new class_name()
  • (D) None of these
πŸ’¬ Discuss
βœ… Correct Answer: (C) my object_name = new class_name()

Explanation: The correct syntax for creating an object in Perl is:

my object_name = new class_name()

Explanation by: Nisha Gupta
The correct syntax for creating an object in Perl is:

my object_name = new class_name()

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
124
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Nisha Gupta
Publisher
πŸ“ˆ
90%
Success Rate