0% found this document useful (0 votes)
58 views4 pages

Objects and Functions or Objects As Function Arguments: OOC 4 Sem, B' Div 2016-17 Prof. Mouna M. Naravani

Objects can be used as function arguments and passed by value or reference. Objects can also be returned by functions. For example, an object can appear as a local variable inside a function or be passed to a function as an argument. Functions can then return objects by value or reference.

Uploaded by

sumahals
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
58 views4 pages

Objects and Functions or Objects As Function Arguments: OOC 4 Sem, B' Div 2016-17 Prof. Mouna M. Naravani

Objects can be used as function arguments and passed by value or reference. Objects can also be returned by functions. For example, an object can appear as a local variable inside a function or be passed to a function as an argument. Functions can then return objects by value or reference.

Uploaded by

sumahals
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Objects and Functions

Or
Objects as Function Arguments

OOC
4th Sem, ‘B’ Div
2016-17
Prof. Mouna M. Naravani
➢ Objects can appear as local variables inside functions.
➢ An object may be used as a function argument.
➢ Objects can be passed by value or by reference.
➢ They can be returned by the value or by functions.
➢ Ex: Obj&[Link]
References

➢ Sourav Sahay, “Objected Oriented Programming with C++”

➢ E Balagurusamy, “Objected Oriented Programming with C++”

You might also like