Can Data Members Be Passed To A Function Using The Object #324
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 OOps Objects - OOPs MCQ: Passing and Returning Object with 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