It is a circuit where the output not only depends on the present inputs, but also depends on the former input and outputs. It also works as switch.The flip-flop can be constructed by using two NAND gates or two NOR gates. Each flip flop consists of two inputs, SET and RESET and two outputs, Q and Q'.Dec 13, 2016