Q. What is called when an object is created in Perl?

  • (A) Destructor
  • (B) Constructor
  • (C) Variable
  • (D) All of these
πŸ’¬ Discuss
βœ… Correct Answer: (D) All of these
Explanation: The constructor of a class is the first subroutine to be called when an object of that class is initiated.
Explanation by: Nisha Gupta
The constructor of a class is the first subroutine to be called when an object of that class is initiated.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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