Where should class variables be ideally initialized?

A. In a function.
B. In a constructor.
C. In a function or a constructor.
D. In the variable declaration.


B. In a constructor.

Computer Science & Information Technology

You might also like to view...

A block:

a. Must contain exactly three statements. b. Cannot contain declarations. c. Is a compound statement. d. Is represented by placing a semicolon (;) where a statement would normally be.

Computer Science & Information Technology

Percent is a short term for per ________

A) 100 B) 1.00 C) 0.1 D) 0.01

Computer Science & Information Technology

Which of the following uses the same key to encrypt and decrypt the data?

a. Symmetric encryption b. Asymmetric encryption c. Encryption d. Cryptographic key

Computer Science & Information Technology

Because ____ are saved as image files, you can use any font for the text.

A. pictures B. interactive buttons C. links D. divs

Computer Science & Information Technology