HCLTech Interview Question

Write a code to show the OOPS concept