Need for getChildDevice and addChildDevice

I usually use this as a reference: Composite Devices (Parent-Child Devices)