2078 5

Object Oriented Programming20785 marksCall by value and call by reference

Explain Call by Value and Call by Reference with appropriate example.

Explain Call by Value and Call by Reference with appropriate example. [5]

In Call by Value, a copy of the actual argument is passed to the formal parameter of the function. Any changes made to the formal parameter inside the function do not affect the original (actual) argument. - The actual and formal parameters occupy separate memory locations. - It is the default me...

Up nextDescribe types of constructors with an example.