HTC Global Services interview question

OOPS in java