ObjectConstructorQ

ObjectConstructorQ[]
is a function that yields True during evaluation of a constructor of an object.
This loads the package.
In[1]:=
Click for copyable input
The next class has a print statement for ObjectConstructorQ in its object constructor and in another method.
In[2]:=
Click for copyable input
ObjectConstructorQ[] is true only within the constructor.