Here the Code for Gated D Latch is implemented by using D Flip-Flop.