How to pass and return object from C++ Functions?

How to pass and return object from C++ Functions?

More to explore

Based on this image's title: “How to pass and return object from C++ Functions?