Question: (9). A public method named computeSum() is located in class4. To call the method from within classB, use the statement a. computeSum(classB); b. classB(computeSum(; c.

(9). A public method named computeSum() is located in class4. To call the method from within classB, use the statement a. computeSum(classB); b. classB(computeSum(; c. classA.computeSum(); d. You cannot call compute Sum) from within classB. (10). You send messages to an object through its a. fields b. methods c. classes d. data (11). A class header must contain a. an access modifier b. the keyword class c. the keyword static d. the keyword public (12). The concept of allowing a class's private data to be changed only by a class's own methods is known as a. structured logic b. object orientation c. information hiding d. data masking (13). When you declare a variable as in double salary;, you a. also must explicitly allocate memory for it b. need not explicitly allocate memory for it c. must explicitly allocate memory for it only if it is stored in a class d. can declare it to use no memory (14). If you use the default constructor, a. numeric fields are set to 0 (zero) b. character fields are set to blank c. boolean fields are set to true d. object type fields are set to 0 (zero)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
