PPT Slide
// Set the name to n
public void setName(String n)
{name= n;}
// Set the salary to s
public void setSalary(double s)
{pay= s;}
// Set the year to y
public void setHireDate(int y)
{hireDate= y;}
// Yield the year the person was hired
public int hireYear()
{return hireDate;}
Previous slide
Next slide
Back to first slide
View graphic version