This topic contains a solution. Click here to go to the answer

Author Question: What modifier should you use on the members of a class so that they are not accessible to another ... (Read 36 times)

K@

  • Hero Member
  • *****
  • Posts: 608

Question 1

What modifier should you use on a class so that a class in the same package can access it but a class in a different package cannot access it?
◦ protected
◦ public
◦ Use the default modifier.
◦ private

Question 2

What modifier should you use on the members of a class so that they are not accessible to another class in a different package, but are accessible to any subclasses in any package?
◦ protected
◦ public
◦ private
◦ Use the default modifier.


Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
Marked as best answer by K@ on May 6, 2020

cascooper22

  • Sr. Member
  • ****
  • Posts: 312
Lorsum iprem. Lorsus sur ipci. Lorsem sur iprem. Lorsum sur ipdi, lorsem sur ipci. Lorsum sur iprium, valum sur ipci et, vala sur ipci. Lorsem sur ipci, lorsa sur iprem. Valus sur ipdi. Lorsus sur iprium nunc, valem sur iprium. Valem sur ipdi. Lorsa sur iprium. Lorsum sur iprium. Valem sur ipdi. Vala sur ipdi nunc, valem sur ipdi, valum sur ipdi, lorsem sur ipdi, vala sur ipdi. Valem sur iprem nunc, lorsa sur iprium. Valum sur ipdi et, lorsus sur ipci. Valem sur iprem. Valem sur ipci. Lorsa sur iprium. Lorsem sur ipci, valus sur iprem. Lorsem sur iprem nunc, valus sur iprium.
Answer Preview
Only 39% of students answer this correctly




K@

  • Member
  • Posts: 608
Reply 2 on: May 6, 2020
:D TYSM


skipfourms123

  • Member
  • Posts: 343
Reply 3 on: Yesterday
YES! Correct, THANKS for helping me on my review

 

Did you know?

Historic treatments for rheumatoid arthritis have included gold salts, acupuncture, a diet consisting of apples or rhubarb, nutmeg, nettles, bee venom, bracelets made of copper, prayer, rest, tooth extractions, fasting, honey, vitamins, insulin, snow collected on Christmas, magnets, and electric convulsion therapy.

Did you know?

Certain topical medications such as clotrimazole and betamethasone are not approved for use in children younger than 12 years of age. They must be used very cautiously, as directed by a doctor, to treat any child. Children have a much greater response to topical steroid medications.

Did you know?

Asthma is the most common chronic childhood disease in the world. Most children who develop asthma have symptoms before they are 5 years old.

Did you know?

Many of the drugs used by neuroscientists are derived from toxic plants and venomous animals (such as snakes, spiders, snails, and puffer fish).

Did you know?

During pregnancy, a woman is more likely to experience bleeding gums and nosebleeds caused by hormonal changes that increase blood flow to the mouth and nose.

For a complete list of videos, visit our video library