HCLTech interview question

Difference between functional and class components?