Showing posts with label Parameter. Show all posts
Showing posts with label Parameter. Show all posts

How to return Objects from Methods

  • 0
      Java enables us to return objects from the methods as well. Returning and passing objects need to consider the  parent child relationship among the classes. This relationship holds importance because, as a matter of fact, Object of parent class can hold the address of object of child class.

How to use Objects as Parameter

  • 0
     The first thing that anyone needs to know is the difference between argument and parameters. Arguments are the variables that are passed to the functions and parameters are the variables that receive the value of the arguments. Java rich Object Oriented Features allow us to use Objects as the parameter.