There are three ways we can pass parameters to a method:
Value parameters – This method copies the actual value of an argument into the formal parameter of the function. In this case, changes made to the parameter inside the function have no side effect on the argument.
Reference parameters – This method copies the reference to the memory location of an argument into the formal parameter. This means that changes made to the parameter affect the argument.
Output parameters – This method helps in returning more than one value.
[amazon_link asins=’007070368X,1787287041,B016Z18MLG,9352136640,B015KHN65I,B06X3WF5FJ,B01BKKOPLS,B00278XLXQ|1491987650,1491988533,1840787198,1119428114,B01AC6P7OU,B075ZY65F2,B0036DUP1M,B00RCIU1S4′ template=’ProductGrid’ store=’desibanjara22-21|desibanjaraco-21′ marketplace=’IN|UK’ link_id=’ab0b4277-93b7-11e8-8bf7-3552a91bbfc0′]