Pergunta de entrevista da empresa HCLTech

Difference between functional and class components?