Question
(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
(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)
(15). A variable ceases to exist at the end of the ___ in which it is declared.
a. statement
b. block
c. class
d. program
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started