In which case a cofactor becomes a prosthetic group?

A cofactor that firmly attaches to the apoenzyme is called prosthetic group.