Perl Programming quiz, level Advanced, question 5
| Question: | To allow a constructor to be inherited, you should |
| Answer 1: | Pass a variable containing the package name as the second parameter to the bless function This was the CORRECT answer |
| Answer 2: | Ensure that all variables used within the constructor are "our" variables |
| Answer 3: | Always use a hash to store the information which relates to each instance of the object |
| Answer 4: | use Exporter, and place the package name in the export_OK list |
This was a question from our quiz ... but we have now provided you with
the answer (above) - we prefer to provide you with information rather than to
puzzle you.
|
|