• Post Reply Bookmark Topic Watch Topic
  • New Topic

Passing Objects to a Method

 
Larry Lai
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,
How're you doing?
One basic knowledge I'm not familiar with is 'Passing Objects to a Method'
The sample code is as below:



It's from textbook and it's talked about Passing Object to a Method.
The main point that the author talks about is "copy the reference from obj" then, made it to the s...
I'm not sure what it is? Does anyone know about that ?

Thanks
Larry
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at Part 4 (especially chapters 26, 28, and 29) of Bradley Kjell's Introduction to Computer Science using Java.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
...and don't miss the "Cup Size" and "Pass-by-Value Please" stories of the JavaRanch Campfire Stories.
 
Larry Lai
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Dirk,

Thanks a lot what you have done.

Larry
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!