Flip-flops are made of regular gates, just like latches, except they are more complicated. Fig. 5.4.2 shows a flip-flop. Notice that there are actually three little SR-latches, hooked together in a strange way so that there is mutual interaction.
Fig. 5.4.2: Flip-flop (Source: [HAMACH])