While writing a code, I just thought if this is possible.
Say in a copy constructor (or any constructor) I want a condition on the element it is being constructed with (say a boolean). I want to be able to construct the object of the class based on whether the boolean is true or false. If true construct otherwise don't and that means the object shouldn't be available.
Is it possible to do so within the constructor of the same class ?