Which is the correct syntax for returning an object by value?
A. void functionName ( ){ }
B. object functionName( ) { }
C. class object functionName( ) { }
D. ClassName functionName ( ){ }
Answer:C
Which is the correct syntax for returning an object by value?
A. void functionName ( ){ } B. object functionName( ) { } C. class object functionName( ) { } D. ClassName functionName ( ){ }