R
Richard Chrenko
How does one deserialize an object of subclass B (derived from superclass
A) if both require custom deserialization?
Does Java call only the readObject() Method of B, thus requiring me to
manually call super.readObject() to carry out the custom deserialization of
the superclass?
Or does Java call A.readobject() after instantiating superclass A and
subsequently call B.readObject() after instantiating the additional content
of subclass B?
A) if both require custom deserialization?
Does Java call only the readObject() Method of B, thus requiring me to
manually call super.readObject() to carry out the custom deserialization of
the superclass?
Or does Java call A.readobject() after instantiating superclass A and
subsequently call B.readObject() after instantiating the additional content
of subclass B?