HSBC Interview Question

Oops concepts and it’s explanation