Java Reference
In-Depth Information
fi rstNames = fNames;
}
public long getPayNum()
{
return payrollNum;
}
public String getSurname()
{
return surname;
}
public String getFirstNames()
{
return fi rstNames;
}
public void setSurname(String sName)
{
surname = sName;
}
}
Output from the above program is shown in Fig. 4.4 .
Fig. 4.4 Displaying the contents of a small fi le of serialised objects
Search WWH ::




Custom Search