Friday 5 April 2013

How can I handle a constructor that fails?

How can I handle a constructor that fails?

throw an exception. Constructors don't have a return type, so it's not possible to use return codes. The best way to signal constructor failure is therefore to throw an exception.



Blog Author: Vijay Kumar

No comments:

Post a Comment