Top Posters
Since Sunday
L
3
d
3
y
3
a
3
n
3
d
3
e
3
d
3
c
3
p
3
M
3
a
3
New Topic  
Izaganag Izaganag
wrote...
Posts: 686
Rep: 2 0
8 years ago
You want addEm to now add all three values and return the sum and changeEm to change x and y, but leave z alone.  Which should you do?
A) Redefine changeEm to call super.changeEm( ) and then set z = x + y, but leave addEm alone
B) Redefine addEm to return the value of z + super.addEm( ) and redefine changeEm to call super.changeEm( ) and then set z = x + y
C) Redefine addEm to return the value of z + super.addEm( ), but leave changeEm alone
D) Redefine addEm and changeEm without referencing super.addEm( ) or super.changeEm( )
E) Redefine changeEm to call super.changeEm( ) without doing anything to z, and redefine addEm to return super.addEm( )
Textbook 
Java Software Solutions: Foundations of Program Design

Java Software Solutions: Foundations of Program Design


Edition: 7th
Authors:
Read 362 times
3 Replies
Replies
Answer verified by a subject expert
habibtihabibti
wrote...
Top Poster
Posts: 1486
8 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...
8 years ago
That makes life a whole lot easier, thank you for answering.
wrote...
8 years ago
Glad to help Slight Smile Slight Smile

PS I love how members in this community are so nice.
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  1127 People Browsing
Related Images
  
 244
  
 10330
  
 162
Your Opinion
Where do you get your textbooks?
Votes: 447