Multiple choice technology programming languages

Which function you will use to create object in perl?

  1. bless

  2. createobject

  3. create_object

  4. blessed

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The bless function is Perl's object constructor mechanism - it associates a reference with a package/class, creating an object. Functions like createobject or create_object don't exist in Perl's OOP system. blessed is not a keyword (though exists() can check if something is blessed).