First of all to correct your formula mistake. It is Ba(OH)2, which is barium hydroxide. There is no such molecule as BaOH2. This incorrectly shows one barium , ONE oxygen and two hydrogens. The correct formula , with brackets, indicates that there are two oxygens and two hydrogens.
Secondly. Barium hydroxide Ba(OH)2 bonds ionically between the barium cation (Ba^(2+)) and the two hydroxide anions ( (OH)^(-)).
However, within the hydroxide anion, the oxygen and the hydrogen bond covalently. as ' O-H^(-) ', with a 'spare' electron for ionic bonding.
Thirdly to correct your 'ionic/molecular'. ALL molecules can be bonded by either Covalent bond or Ionic Bonding.
So Barium hydroxide (Ba(OH)2) is normally deemed to be an Ionic Molecule.
NB By comparison, Water (H2O) and Carbon Dioxide (CO2) are covalently bonded molecules.
NNB The word ' molecule' is a collective noun for all polyatomic substances irrespective of there type of bonding.
NNNB Bonding is in the form of IONIC , COVALENT, and not discussed here, METALLIC'.
So please do not refer refer to 'ionic/molecular'. It is ionic or covalent.
Cr2O3 is an ionic compound. It consists of chromium ions (Cr3+) and oxide ions (O2-) held together by ionic bonds.
Glucose is a molecular compound, not ionic. It consists of covalent bonds between its carbon, hydrogen, and oxygen atoms.
H2O is a molecular compound.
HCIO4 is an ionic compound.
NO is a molecular compound, not an ionic compound. It is made up of individual atoms of nitrogen and oxygen that are covalently bonded together.
Ionic Molecular
PtO2 is ionic
molecular
Molecular
ionic
ionic
it is ionic
It is molecular
Molecular compound
It's molecular
A molecular covalent compound
CO is a molecular compound. It consists of a covalent bond between carbon and oxygen atoms.