Chapter 13: Problem 20
{ Constructor Failure})$ Write a program that shows a constructor passing information about constructor failure to an exception handler. Define class SomeException, which throws an Exception in the constructor. Your program should try to create an object of type SomeException and catch the exception that is 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.