First, hide and show the parent layer. You'll notice that the child layers will follow suit. Then hide and show the child layers, and then hide and show the parent layer again - you'll see that child layers still stay visible.
Change visibility:
parent1: hide, show
child1: hide, show
child2: hide, show