The main reason why the (::) cannot be overloaded is that only operators that take in values as parameters can be overloaded. The scope resolution operator does not take a value as parameter.
If the electronic configuration of elements A and B are respectively, then the formula of the compound formed by the combination of these elements will be: