Amdocs Interview Question

OOPS principle of java