Accion Labs interview question

how can we achieve encapsulation? explain oops concept implemented in given java code. etc