Amdocs interview question

OOPS principle of java