The project i should have an employee class.
The attributes of these class are name,dob etc..
Four methods are to be used like display,update,get and set.
The main method should ask the number of employees.
Next the user has to enter all the attributes and all this will be saved in a file.
Now a method say display method has to called alongwith the argument which you want to retrive,say name.
i created a class as shown below:
package Employee;
sub new
{
my $self = {
_Name => undef;
_DOB => undef;
};
bless $self,'Employee';
return $self;
}
sub DisplayDetails
{
}
package main;
print "Enter the number of Employees";
$employee_count=<STDIN>;
My doubt it how to access this display method using the object.