addChild method

dynamic addChild (
  1. Point node
)

add node for Point, the node's type must is Point

Implementation

addChild(Point node) {
  this.child.add(node);
}