Can Data Members Be Passed To A Function Using The Object #1118
Can data members be passed to a function using the object?
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: Passing Object to Functions - Quiz No.1.
Can data members be passed to a function using the object?
Yes, it can be passed only inside class functions
Yes, only if the data members are public and are being passed to a function outside the class
No, can’t be passed outside the class
No, can’t be done