public readonly property isPrivate as Boolean:
True when the constructor is private.
print(User.type.getConstructor().isPrivate)