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

What is the English of ti amo
Determine if the equation is linear. Two x squared plus y equals six
what are some actions that a person with with psychosis might have
construcciones con "se": completa las oraciones utilizando construcciones con "se" en el presente de indicativo. 1. Los ensayos ____(entender) facilmente. 2 Los
Suppose molecules were unable to diffuse into and out of the cells. How might life be different if cells had to use active transport to move every substance? Ex
Evaluate. (n - 1)!, where n = 4
If 6x -1 = 29, what is the value of x² + x?
Water boils at different temperatures at different elevations. The boiling temperature of water is 212degreesF at sea level​ (0 feet) but drops about 1.72degree
Opisz dlaczego oskar był samotny? Oskar i Pani Róża . oraz opisz samotność w Małym księciu Antoine de saint exupery
Find the value of C. Express the answer as a simplified radical.