Ask Question

Another method that might be desired is one that updates the Student's number of credit hours. This method will receive a number of credit hours and add these to the Student's current hours. Which of the following methods would accomplish this? a. public int updateHours () {return hours; }b. public void updateHours () {hours++; }c. public updateHours (int moreHours) {hours + = moreHours; }d. public void updateHours (int moreHours) {hours + = moreHours; }e. public int updateHours (int moreHours) {return hours + moreHours; }

+2
Answers (1)
  1. Yesterday, 19:24
    0
    Option d is the method

    Explanation:

    public void update Hours (int more Hours)

    {

    hours + = more Hours; }e. public int update Hours (int more Hours) {return hours + more Hours;

    }
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Another method that might be desired is one that updates the Student's number of credit hours. This method will receive a number of credit ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers