In an ionic bond:
A. The atoms swap electrons.
B. Both atoms share their electrons.
C. The atoms attract each other but their electrons do not interact.
D. One atom accepts electrons from another.