Top Posters
Since Sunday
w
5
a
3
j
2
a
2
t
2
u
2
r
2
j
2
j
2
l
2
d
2
y
2
New Topic  
Izaganag Izaganag
wrote...
Posts: 686
Rep: 2 0
9 years ago
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;   }
Textbook 
Java Software Solutions: Foundations of Program Design

Java Software Solutions: Foundations of Program Design


Edition: 7th
Authors:
Read 179 times
3 Replies
Replies
Answer verified by a subject expert
habibtihabibti
wrote...
Top Poster
Posts: 1486
9 years ago
Sign in or Sign up in seconds to unlock everything for free
More solutions for this book are available here
1

Related Topics

Izaganag Author
wrote...
9 years ago
That makes life a whole lot easier, thank you for answering.
wrote...
9 years ago
Don't forget to press the Mark as SOLVED Slight Smile Otherwise I don't get credit Frowning Face
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  1295 People Browsing
Related Images
  
 4618
  
 458
  
 461
Your Opinion
How often do you eat-out per week?
Votes: 81