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

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