Showing posts with label Pass by value. Show all posts
Showing posts with label Pass by value. Show all posts

Is it possible to pass an object from one function to another ─ justify from an example.




Passing Objects: An object can be used as a function argument in the following two ways,

  1. pass-by-value
  2. pass-by-reference