You need to do what you feel most comfortable with.
You should have a quiet, relaxed place to nurse the baby. Ten and twelve year old boys can learn to respect privacy. But, the benefits of seeing and understanding how babies are fed will be invaluable for them as adult men and fathers. Explain your feelings to them, and what you feel is appropriate.