<em><u>Ionic compounds are compounds that are formed as a result of ionic bond between metal and non-metal.</u></em> This occurs as a result of transfer of electrons between the atoms involved where one losses electrons to form a cation and the other gains electrons to form an anion.
<em><u>Most bases like the ionic compounds they contain a cation and an anion, which forms a compound. </u></em>
An example would be: <em><u>KOH (potassium hydroxide) and Ca(OH)2 is calcium hydroxide.</u></em>