HCLTech interview question

about thr oops concepts in java