Science, asked by Madhan399, 1 year ago

Object as function arguments in c++ with simple example

Answers

Answered by Hacket
1
Objects as Function Arguments in c++ The objects of a class can be passed as arguments to member functions as well as nonmember functions either by value or by reference. When an object is passed by value, a copy of the actual object is created inside the function.
Answered by 2008shrishti
0

Answer:

Objects as Function Arguments in c++ The objects of a class can be passed as arguments to member functions as well as nonmember functions either by value or by reference. When an object is passed by value, a copy of the actual object is created inside the function.

Explanation:

Hope this answer will help you.

Similar questions