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 31 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


Zebsrer

  • Member
  • Posts: 284
Reply 3 on: Yesterday
Great answer, keep it coming :)

 

Did you know?

To maintain good kidney function, you should drink at least 3 quarts of water daily. Water dilutes urine and helps prevent concentrations of salts and minerals that can lead to kidney stone formation. Chronic dehydration is a major contributor to the development of kidney stones.

Did you know?

Atropine, along with scopolamine and hyoscyamine, is found in the Datura stramonium plant, which gives hallucinogenic effects and is also known as locoweed.

Did you know?

There can actually be a 25-hour time difference between certain locations in the world. The International Date Line passes between the islands of Samoa and American Samoa. It is not a straight line, but "zig-zags" around various island chains. Therefore, Samoa and nearby islands have one date, while American Samoa and nearby islands are one day behind. Daylight saving time is used in some islands, but not in others—further shifting the hours out of sync with natural time.

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?

Illicit drug use costs the United States approximately $181 billion every year.

For a complete list of videos, visit our video library