I've been using Pascal a while, but it was only recently that I decided to use Pascal for OO programming. Having only used records and typed files up to this point, I'm wondering how objects are saved to stream.
Am I right in supposing that only instance variables are saved? If so, then what about the instance variables of objects inside an object? And the instance variables of objects inside an object, that's inside an object (and... you get the idea)?
I know I should just try it and see for myself, but there are times when trial-and-error must take a backseat to give way to asking, and I think this is one of those times.
TIA.