• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I am still confused

 
Md.Afzalur Rashid
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the object(x) passed to the method is reffered to the object N.So the result should be 31.
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Md.Afzalur Rashid:
I think the object(x) passed to the method is reffered to the object N.So the result should be 31.

Yes but then N is pointed to a brand new object. X is still pointing to the original object.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic