XYZ Tech Interview Question

Oops concept in programming language