1.

What is the difference between ByRef and ByVal?

Answer»
  • ByVal

ByVal means passing direct value to the method, which means that any change to that parameter that TAKES place inside that method have no affect on ORIGINAL data stored in ARGUMENT variable.

  • ByRef

ByRef VARIABLES does not contains the data directly, it contains a reference to its data, so if the value is changed inside the method, then the same reflects in the argument variable.



Discussion

No Comment Found