I am reading the book "design patterns: elements of reusable object oriented software. And I am trying to understand the composite pattern. I need help in understanding this paragraph in the case study part of the book
Glyphs like Row that can have children should use Child internally instead of accessing the child data structure directly. That way you won't have to modify operations like Draw that iterate through the children when you change the data structure from, say, an array to a linked list. Similarly, Parent provides a standard interface to the glyph's parent, if any. Glyphs in Lexi store a reference to their parent, and their Parent operation simply returns this reference.