Constructor with Exception
if i have this:
private: int x;
if (_x == 0)
//what i do here? if i don't want 0?
What is the best thing to do in this case? Exception? If it is, how i do it?
I don't want to construct the object if it is _x == 0.
thank you very much!
Topic archived. No new replies allowed.