AMD Interview Question

Implement a flip flop in C? What is a pure virtual function?