What is called when an object is created in Perl?

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

  1. Destructor
  2. Constructor
  3. Variable
  4. All of these

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.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.