PersonSerializablepublic class PersonSerializable extends Object implements Serializable
Fields Summary |
---|
private String | name | private String | occupation | private char | sex | private int | age |
Methods Summary |
---|
public void | displayDetails()
System.out.println("Name = "+name);
System.out.println("Age = "+age);
System.out.println("Sex= "+sex);
System.out.println("Occupation= "+occupation);
| public void | setDetails(java.lang.String name, int age, char sex, java.lang.String occupation)
this.name = name;
this.age = age;
this.occupation = occupation;
this.sex = sex;
|
|