1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Montano1993 [528]
4 years ago
14

What modifier should you use on a class so that a class in the same package can access it but a class (including a subclass) in

a different package cannot access it?A. publicB. privateC. protectedD. Use the default modifier.
Computers and Technology
1 answer:
7nadin3 [17]4 years ago
4 0

Answer:

Option (B) is the correct answer of this question.

Explanation:

In the Private access modifier we can access the property and field within the package or class we cannot accessing the member outside the class .

  • We use private keyword for declaring the private access modifier.
  • In the public access modifier we accessing the property outside the class so it's a incorrect option .
  • In the protected access modifier we access the property of class package and subpackage both so it's a incorrect option.
  • The default modifier is incorrect it not follow the given scenario so it's incorrect.
You might be interested in
John just bought a used iPad from a friend who had lost the charging cable. John notices that the cable is like the charging cab
7nadin3 [17]

Answer:

an iphone charger

Explanation:

5 0
4 years ago
Mention<br>any<br>5<br>indicators of<br>happiness​
Maru [420]

Answer:

5 indicators of happiness that might surprise you · Happiness is deep · Happy is busy · Can't buy me happiness · The happiness gene · No regrets.

Explanation:

5 0
4 years ago
Read 2 more answers
Which best describes TPM?
rodikova [14]

Answer:

Encryption used on hard drives

Explanation:

TPM is a hardware chip. It is a type of module that is used to authenticate the hardware devices with the help of encryption keys (passwords). It is the short form of Trusted Platform module. The hardware devices that be authenticated through this module may include personnel computer or laptops. There are different keys, password and security codes.

So, the best sentence that describes, TPM is Encryption built into hardware .

4 0
3 years ago
What keyboard shortcut is used to move the cursor to the beginning or end of a document.
TiliK225 [7]
Ctrl+Home moves the cursor to the beginning of the document, and Ctrl+End moves the cursor to the end of a document. These shortcuts work with most documents, as well as web pages.
7 0
3 years ago
The name of a person their address and their contact information like phone number and email address or consider the minimum inf
andrew-mc [135]

Answer:

false

Explanation:

6 0
4 years ago
Other questions:
  • The conceptual phase of any system or just the software facet of a system best describes the sdlc
    9·1 answer
  • A presentation to sixth graders always should be more abstract than a presentation to corporate executives?
    12·2 answers
  • Consider the following two implementations of the same algorithm, each written in a different language.
    11·1 answer
  • Tom is required to present the activities of his Nature club each month to the school committee. Which presentation element can
    12·2 answers
  • Which of the following terms best describes the process that occurs when two or more parties decide how to allocate scarce resou
    12·1 answer
  • Write a program that prompts the user for an integer, then asks the user to enter that many values. Store these values in an arr
    14·1 answer
  • Write a computer program that determines how many grades are between 0 and 19.
    8·1 answer
  • Select the correct answer.
    9·1 answer
  • Write a method, including the method header, that will receive an array of integers and will return the average of all the integ
    7·1 answer
  • Which statement describes a biotic factor interacting with the environment?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!