Heterocyclic has 4 different meanings across 2 categories:
a compound containing a heterocyclic ring
A heterocycle
containing a closed ring of atoms of which at least one is not a carbon atom
Having atoms of two or more different elements in at least one of its rings.