Chapter 45 Flashcards

1
Q

Who closes the file

A

destructor

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the role of member initialization list in exception

A

Exception due to constructors of contained objects or constructor of a parent class can be caught in the member initialization list.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is role of destructor in exception

A

If destructor is called due to stack unwinding then exception should not leave destructor otherwise there will be abort

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is abort

A

Program terminate abnormally

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is throw list

A

list of exceptions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is function unexpected

A

If program throw an exception that is not in throw list then function unexpected in called. Which in turn call function terminate.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is concrete class

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly