How Fish Reproduce?

Fish for the most part reproduce like this: The female lays eggs in the weeds or in a hole and the male comes along and fertilizes the eggs. Some fish actually have live babies and the way they reproduce is that the male and the female swim close to each other rubbing against each other.