With the help of a suitable example, explain how ionic compounds are formed

With the help of a suitable example, explain how ionic compounds are formed. State any three general properties of ionic compounds?

Ionic compounds are formed by the transfer of electrons from one atom to another.
These compounds are composed of one part of metal and other part of non-metal, e.g. sodium oxide Na2O.