Re:Inheritance versus Composition
by kazinator on Thursday May 09, 2019 @02:03PM
(#19870579)
Even if a point uses polar coordinates internally, we can have syntax "p.x" which gets the Cartesian x.
Information hiding is an important concept in low-level-ish systems programming languages in which p.x implies a piece of machine code that offsets 24 bytes from the base address of p, and fetches a four byte integer.
Information hiding is an important concept in low-level-ish systems programming languages in which p.x implies a piece of machine code that offsets 24 bytes from the base address of p, and fetches a four byte integer.