constructors top-down, destruction bottom-up.
Eg:
in parent's constructor
in child's constructor
in grandchild's constructor
in grandchild's destructor
in child's destructor
in parent's destructor
Eg:
in parent's constructor
in child's constructor
in grandchild's constructor
in grandchild's destructor
in child's destructor
in parent's destructor
No comments:
Post a Comment