Answer the following statements true (T) or false (F)

1. Data members declared as ReadOnly must be initialized in their declaration.
2. Attempting to modify the value of a Const variable at run time is a syntax error.
3. Const members can be initialized only to other constant values.
4. Const members are not implicitly Shared.
5. Const members must be initialized at compile time, but ReadOnly values are not initialized
until runtime. Neither one can be modified once initialized.


1 .False, ReadOnly members also may be initialized in their class’s constructor.
2. True.
3. True.
4. False. Const members are implicitly Shared.
5. True

Computer Science & Information Technology

You might also like to view...

Give the signature for the following C++ function: cout << 123

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

How does the Page tool work?

What will be an ideal response?

Computer Science & Information Technology

Which of the following choices allows you to rearrange the order of slides by dragging one or more slides from one location to another?

A) Slide Show view B) Slide Sorter view C) Normal view D) Navigation view

Computer Science & Information Technology

You should start at the top and move down to the lower subclasses to define the _____.

A. base object B. object literal C. prototype chain D. object constructor

Computer Science & Information Technology