grandchild

How to get the list of children and grandchildren from a nested structure?

How to get the list of children and grandchildren from a nested structure? Question: Given this dictionary of parent-children relations, { 2: [8, 7], 8: [9, 10], 10: [11], 15: [16, 17], } I’d like to get the list of all children, grandchildren, great-grandchildren, etc. — e.g. given a parent with an ID 2 I …

Total answers: 1

How to call super method from grandchild class?

How to call super method from grandchild class? Question: I am working with some code that has 3 levels of class inheritance. From the lowest level derived class, what is the syntax for calling a method 2 levels up the hierarchy, e.g. a super.super call? The “middle” class does not implement the method I need …

Total answers: 5