This method associates a new child object with the parent object. The new child object is of the type specified in the method name. For example, to associate a new address object with a parent object, call addAddress.
void addChild(ChildObject child)
The type of object passed as a parameter depends on the child object to associate with the parent object. For example, the syntax for associating an address object is as follows:
void addAddress(AddressObject address) |
Name |
Type |
Description |
---|---|---|
child |
ChildObject |
A child object to associate with the parent object. The name and type of the parameter is specified by the child object name. |
None.
ObjectException