Zoomin Software interview question

What's the difference between class component to functional component