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
Math,
8 months ago
Computer Science,
8 months ago
Physics,
8 months ago
Social Sciences,
1 year ago
Science,
1 year ago