How can you make a field serializable?
I know to declare a class to be serializable you say something like
import java.io.Serializable;
public class MyClass implements Serializable{
but when declaring a variable how can you say that that is also Serializable?
Thanks for any help you can provide.
-Kyle
I know to declare a class to be serializable you say something like
import java.io.Serializable;
public class MyClass implements Serializable{
but when declaring a variable how can you say that that is also Serializable?
Thanks for any help you can provide.
-Kyle