package Chap4_ClassAndInterface.item19;

import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.Serializable;

public class SerializableFoo implements Serializable {

    private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException{
        ois.defaultReadObject();
        overrideMe();
    }

    public void overrideMe() {
        System.out.println("This is SuperFoo's overrideMe");
    }
}
