daveankatie5635 daveankatie5635
  • 15-01-2020
  • Computers and Technology
contestada

Which of this access specifies can be used for a class so that its members can be accessed by a different class in the same package?
a) Public
b) Protected
c) No Modifier
d) All of the mentioned

Respuesta :

ijeggs
ijeggs ijeggs
  • 16-01-2020

Answer:

D) All the mentioned

Explanation:

public: This access modifier allows access from all classes in the program

protected: Means only classes within the same package or sub-classes (inheritance) can access members of the class

No Modifier: Omiting the modifier sets a class to the default. Which implies only classes in the same package can access members of the class.

The given question refers to class members in the same package so any these three access modifiers can be used.

Answer Link

Otras preguntas

Can anyone help me please ?
A sample of a gas in a rigid container has an initial pressure of 1.049 kPa and an initial temperature of 7.39 K. The temperature is increased to 30.70 K. What
HELP PLS!!!!! 4 radical 3 times 2 radical 3 = I will be so happy.
A store has apples on sale for $10.00 for 4 pounds. If an apple is approximately 5 ounces, how many apples can you buy for $40.00? Complete the explanation.
What economic system has a privately owned means of production
Read the following excerpt: She had no dowry, no hopes, no means of becoming known . . . Which language convention does the author use for effect?
100 POINTS help me please
Determine the slope of the line segment A.) 2 B.) 5 C.) 1/2 D.) 5/3
Please help me with this (question in the picture) 12 points!
Can anyone help please?