What is the difference between a reference parameter and an output parameter?

What will be an ideal response?

Reference and output parameters differ as follows:
* When you declare a reference parameter in a method header, the argument used to call the method must have been assigned a value.
* When you declare an output parameter, the argument used in the call need not contain an original, assigned value. However, an output parameter must be assigned a value before the method ends.

Computer Science & Information Technology

You might also like to view...

A ________ is a written message sent to someone in the same organization

A) blog B) cover letter C) memorandum D) template

Computer Science & Information Technology

In the array implementation of a stack, why should items and top be specified as private?

What will be an ideal response?

Computer Science & Information Technology