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 30 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
Thanks for the timely response, appreciate it


jordangronback

  • Member
  • Posts: 339
Reply 3 on: Yesterday
Excellent

 

Did you know?

Glaucoma is a leading cause of blindness. As of yet, there is no cure. Everyone is at risk, and there may be no warning signs. It is six to eight times more common in African Americans than in whites. The best and most effective way to detect glaucoma is to receive a dilated eye examination.

Did you know?

The modern decimal position system was the invention of the Hindus (around 800 AD), involving the placing of numerals to indicate their value (units, tens, hundreds, and so on).

Did you know?

Congestive heart failure is a serious disorder that carries a reduced life expectancy. Heart failure is usually a chronic illness, and it may worsen with infection or other physical stressors.

Did you know?

Oxytocin is recommended only for pregnancies that have a medical reason for inducing labor (such as eclampsia) and is not recommended for elective procedures or for making the birthing process more convenient.

Did you know?

There are 60,000 miles of blood vessels in every adult human.

For a complete list of videos, visit our video library