What are latches and flipflops?
There are two types of circuits as follows:
a. Combinational
b. Sequential
Flipflops and latches both come into the category of "sequential circuits" that output depends not only onto the current inputs, although also onto earlier inputs and outputs.