The class DooDad has a default constructor that might throw a DooDadConstructorException. The class FoeFum has a DooDad object as a data field. Write a default constructor for FoeFum that creates the class’s data field. In the event a DooDadConstructorException is thrown, invoke DooDad’s static method getDefaultDooDad and assign the returned DooDad object to FoeFum’s data field.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here