Goldfish are in the Carp family, therefore they are egg layers, the female lays eggs and the male swims by and fertilizes them.
Wel you get a boy fishy and a girl fishy and they do stuff and boom you gotz a baby!!
They become impregnated by a male fish and then lay eggs.