Explain what the following code does:
package Person;
sub new {
my $self = {
_firstName => undef,
_lastName => undef,
_ssn => undef,
_address => undef,
_salary => undef,
_dept => undef
};
bless $self, 'Person';
return $self;
}
sub print {
my ($self) = @_;
printf( "Name:%s %s\n\n", $self->firstName, $self->lastName );
}