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...

Explain how the loose coupling inherent in message queues can aid with Enterprise Application Integration. As in Exercise 6.1, consider to what extent this can be traced to time uncoupling, space uncoupling or a combination of both.

What will be an ideal response?

Computer Science & Information Technology

An hypothesis is a sequence of trial and error guesses a troubleshooter makes to try to find a problem solution.

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

Computer Science & Information Technology