The main advantage to declaring a variable within a class definition is that:

A. you only have to declare it once
B. the object made from the class will remember the value of the variable, even when a function of the object is not executing
C. it allows you to write class functions to access the value of the variable
D. you might declare a variable that is not useful, and the client will never know

B

Computer Science & Information Technology

You might also like to view...

To a calculate a grand total for a PivotTable, you begin by clicking the Grand Totals button in the:

A) Data group on the Insert tab. B) Layout group on the Insert tab. C) Data group on the Design tab. D) Layout group on the Design tab.

Computer Science & Information Technology

What tasks does a revision control software allow you to perform?

What will be an ideal response?

Computer Science & Information Technology