Actually,you can write a get and set method for each attribute of Person.
Like:
public String getForename()
{
return this.Forename;
}
public void setForename(String Forename){...
Type: Posts; User: lewvan00
Actually,you can write a get and set method for each attribute of Person.
Like:
public String getForename()
{
return this.Forename;
}
public void setForename(String Forename){...
hi there,The code will be showed below :
import java.util.*;
class Person{
private String Forename;
private String Surname;