Question: 1.(CO 2) You can declare access specifiers for sections of your class, including private, protected, and public. If you do not declare an access specification,
1.(CO 2) You can declare access specifiers for sections of your class, including private, protected, and public. If you do not declare an access specification, what is the default for a class?
| a. | private |
| b. | protected |
| c. | public |
| d. | The application crashes because you must add an access specifier. |
2. (CO 1) When a constructor accepts arguments for the initial values, it is called a(n) _____.
| a. | parameterized constructor |
| b. | default constructor |
| c. | stand-alone constructor |
| d. | arbitrator constructor |
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
