Is it possible to serialize subclasses created by me?

0

I tell you, I have the following:

I have a small error when it comes to serializing them, mark that they are not serializable. Is there any chance that they can be serialized?

Thanks

    
asked by Chris Vazquez 28.07.2018 в 01:20
source

1 answer

0

If possible, you only have to make the classes / subclasses you want to serialize implement the Serializable interface, for example:

public class MiClase implements Serializable
{
}

The serializable interface does not have any methods so you should not worry about implementing methods.

    
answered by 28.07.2018 в 01:26