Question: a) Write java code to create an interface called IPerson with one method called display. Implement this interface in a java class called Person with
a) Write java code to create an interface called IPerson with one method called display. Implement this interface in a java class called Person with two instance variables name and address and relevant set and get methods.
b) Write java code to create three objects of Person class and serialize them to a file named person.obj.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
