Contents    Page-10    Prev    Next    Page+10    Index   

Implementation of Objects

An object is basically just a record, with a bit of extra information:

If an object contains a lot of data, the overhead of the extra information is modest. However, for simple data such as Integer, the overhead is significant.

Allocation of space in an object and access to instance variables are the same as for records.