Chapter 45 Flashcards
Who closes the file
destructor
What is the role of member initialization list in exception
Exception due to constructors of contained objects or constructor of a parent class can be caught in the member initialization list.
What is role of destructor in exception
If destructor is called due to stack unwinding then exception should not leave destructor otherwise there will be abort
What is abort
Program terminate abnormally
What is throw list
list of exceptions
What is function unexpected
If program throw an exception that is not in throw list then function unexpected in called. Which in turn call function terminate.
What is concrete class
An abstract class meant to be used as the base class from which other classes are derived. The derived class is expected to provide implementation for the member functions that are not implemented in base class. A derived class that implement all the missing functionality is called a concrete class.