Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
main_objetos
use Person; $object = new Person( "Mohammad", "Saleem", 23234345); # Get first name which is set using constructor. $firstName = $object->getFirstName(); print "Before Setting First Name is : $firstName\n"; # Now Set first name using helper function. $object->setFirstName( "Mohd." ); # Now get first name set by helper function. $firstName = $object->getFirstName(); print "Before Setting First Name is : $firstName\n";
run
|
edit
|
history
|
help
0
Attractive Numbers
101744
Updated Safe 2.1 Solution
codeyard
1st code
Riyali-101738
Closure
Basics
Simple Perl Interview Question
Balancing brackets