Object as function arguments in c++ with simple example
Answers
Answered by
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
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