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


scikid

  • Member
  • Posts: 300
Reply 3 on: Yesterday
Gracias!

 

Did you know?

More than 150,000 Americans killed by cardiovascular disease are younger than the age of 65 years.

Did you know?

There are more bacteria in your mouth than there are people in the world.

Did you know?

Human neurons are so small that they require a microscope in order to be seen. However, some neurons can be up to 3 feet long, such as those that extend from the spinal cord to the toes.

Did you know?

Nearly 31 million adults in America have a total cholesterol level that is more than 240 mg per dL.

Did you know?

The training of an anesthesiologist typically requires four years of college, 4 years of medical school, 1 year of internship, and 3 years of residency.

For a complete list of videos, visit our video library