Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
roni leonita 101745
Closure
1st code
perl_tutorial
Hash
Sea
testing dereference of anonymous routines
Conta valores acima da média
Simple Perl Interview Question
Anchal 101712
Please log in to post a comment.