How are mutations passed on to offspring?

A mutation is passed on when it occurs in a stomach cell.

A mutation is passed on when it occurs in a brain cell.

A mutation is passed on when it occurs in a nerve cell.

A mutation is passed on when it occurs in an egg cell.