Top Posters
Since Sunday
d
4
N
3
3
R
3
k
3
o
3
Z
3
j
3
s
3
d
3
J
3
1
3
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 177 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
  1493 People Browsing
Related Images
  
 116
  
 232
  
 300