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

Author Question: Suppose you wish to provide an accessor method for a boolean property finished, what signature of ... (Read 27 times)

Garrulous

  • Hero Member
  • *****
  • Posts: 686

Question 1

Which of the following statements are true?
◦ Encapsulating data fields makes the program short.
◦ Encapsulating data fields makes the program easy to maintain.
◦ Encapsulating data fields helps prevent programming errors.
◦ Use the private modifier to encapsulate data fields.

Question 2

Suppose you wish to provide an accessor method for a boolean property finished, what signature of the method should be?
◦ public void isFinished()
◦ public boolean isFinished()
◦ public void getFinished()
◦ public boolean getFinished()


Related Topics

Need homework help now?

Ask unlimited questions for free

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

adammoses97

  • Sr. Member
  • ****
  • Posts: 337
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 50% of students answer this correctly




Garrulous

  • Member
  • Posts: 686
Reply 2 on: May 6, 2020
YES! Correct, THANKS for helping me on my review


rachel

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

 

Did you know?

Nitroglycerin is used to alleviate various heart-related conditions, and it is also the chief component of dynamite (but mixed in a solid clay base to stabilize it).

Did you know?

Sildenafil (Viagra®) has two actions that may be of consequence in patients with heart disease. It can lower the blood pressure, and it can interact with nitrates. It should never be used in patients who are taking nitrates.

Did you know?

A recent study has found that following a diet rich in berries may slow down the aging process of the brain. This diet apparently helps to keep dopamine levels much higher than are seen in normal individuals who do not eat berries as a regular part of their diet as they enter their later years.

Did you know?

The familiar sounds of your heart are made by the heart's valves as they open and close.

Did you know?

Eating food that has been cooked with poppy seeds may cause you to fail a drug screening test, because the seeds contain enough opiate alkaloids to register as a positive.

For a complete list of videos, visit our video library