Accion Labs Interview Question

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