| |
GeekInterview.com > Interview Questions > Programming > C++
| Print | |
Question: What happens to the member pointers when an exception occures in constructor, while allocating memory ? how can we over come this ?
|
| May 05, 2007 23:34:57 |
#2 |
| heyjoe |
Member Since: May 2007 Total Comments: 2 |
RE: What happens to the member pointers when an except... |
When a constructor throws an exception then it means that constructor failed (duh!!) and the object is never created.
Just write a simple class to test it out yourself. |
| |
Back To Question | |