1. A class with no access modifier can be accessed by package-mate classes without being imported. а) b) True False 2. Access modifiers can be applied to the following (select all that applies): class...


Please answer the following questions.


1. A class with no access modifier can be accessed by package-mate classes without being<br>imported.<br>а)<br>b)<br>True<br>False<br>2. Access modifiers can be applied to the following (select all that applies):<br>class<br>local variables<br>constructors<br>attribute<br>method<br>parameters<br>3. Dog and Cat are two public classes in two different packages. If the Dog class wants to<br>access the Cat class, is importing the Cat class in the Dog class necessary?<br>a)<br>b)<br>Yes<br>No<br>

Extracted text: 1. A class with no access modifier can be accessed by package-mate classes without being imported. а) b) True False 2. Access modifiers can be applied to the following (select all that applies): class local variables constructors attribute method parameters 3. Dog and Cat are two public classes in two different packages. If the Dog class wants to access the Cat class, is importing the Cat class in the Dog class necessary? a) b) Yes No

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here