When objects contain pointers, it is a good idea to create an explicit __________ function.

a. destructor
b. copy constructor
c. static constructor
d. inline constructor
e. None of these


b. copy constructor

Computer Science & Information Technology

You might also like to view...

Suppose you enter 34.3 57.8 789, then press the ENTER key. Analyze the following code. Scanner input = new Scanner(System.in); double v1 = input.nextDouble(); double v2 = input.nextDouble(); String line = input.nextLine();

a. After the last statement is executed, line contains characters '7', '8', '9'. b. After the last statement is executed, line contains characters '7', '8', '9', '\n'. c. After the last statement is executed, line contains characters ' ', '7', '8', '9', '\n'. d. After the last statement is executed, line contains characters ' ', '7', '8', '9'.

Computer Science & Information Technology

Which of the following statements correctly returns the variable intValue from a method?

a) return int intValue; b) return void intValue; c) intValue return; d) return intValue;

Computer Science & Information Technology

The following sentence places the modifier in the correct location.?

A. ?The company almost achieved a 25 percent increase in sales over last quarter. B. ?The company achieved almost a 25 percent increase in sales over last quarter.

Computer Science & Information Technology

What are the two major types of frame structures?

a. Low speed and high speed. b. High speed and EBCDIC. c. CCITT and low speed. d. EBCDIC and CCITT.

Computer Science & Information Technology