JPMorganChase Interview Question

Q: What is the difference between component and class