Object Oriented Programming20815 marksReturning objects from functions
How do you return object in function? Describe with an example.
How do you return object in function? Describe with an example. [5]
In C++, a function can return an object of a class just like it returns any other data type. The return type of the function is specified as the class name, and the return statement returns an object of that class. Syntax: --- - The return type of the function must be the class name. - A temporar...