Which Is The Correct Syntax For Returning An Object By Value #1128
Which is the correct syntax for returning an object by value?
This multiple choice question (MCQ) is related to the book/course
gs gs111 OOP Object Oriented Programming Java.
It can also be found in
gs gs111 Assigning Object, Pointer to Objects, Passing and Returning Object - OOPs MCQ: Returning Objects - Quiz No.1.
Which is the correct syntax for returning an object by value?
void functionName ( ){ }
object functionName( ) { }
class object functionName( ) { }
ClassName functionName ( ){ }