Chapter 11: Problem 19
(Constructor Failure) Write a program that shows a constructor passing information about constructor failure to an exception handler. Define class SomeClass, which throws an Exception in the constructor. Your program should try to create an object of type SomeClass and catch the exception that's thrown from the constructor.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.