Pergunta de entrevista da empresa Crediwatch

What is the difference between functional components and class components?