When should you make a method private?
a. Should you ever change a private method to a public method?
b. Should you ever change a public method to a private one?
Make a method private if you don't think other classes need access to it.
a. Yes, you can do this if you ¯nd that other classes do need access to it.
b. No, you shouldn't do this unless you can check that no other class is using the method.
You might also like to view...
When the user selects a file with the Open dialog box, the file's path and filename are stored in the control's ____________.
a. File Path property b. Source property c. Location property d. Filename property
Answer the following statements true (T) or false (F)
1. A while loop may have a semicolon after the test expression and before the body of the loop, but it is not required. 2. A while loop is somewhat limited, because the counter can only count up, not down. 3. An initialization expression may be omitted from the for loop if no initialization is required. 4. When a loop is nested inside another loop, the outer loop goes through all its iterations for each iteration of the inner loop. 5. A while loop is somewhat limited because the counter can only be incremented or decremented by one each time through the loop.
Mobile devices do not need antivirus software
Indicate whether the statement is true or false
Which of the following is a valid folder name?
A. folder? B. folder! C. folder: D. "folder"