One common joinery method used in wood working is the mortise and tenon. A mortise is basically a hole in a piece of wood and the tenon is another piece of wood cut to tightly fit in that hole.
As [Richard Sewell] explains, a heat-staked joint is nothing more than the classic mortise-and-tenon made from plastic where the tenon stands proud of the joint face so it can be softened with heat.