Which function you will use to create object in perl?
-
bless
-
createobject
-
create_object
-
blessed
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).