Q:

Can data members be passed to a function using the object?

0

Can data members be passed to a function using the object?


  1. Yes, it can be passed only inside class functions
  2. Yes, only if the data members are public and are being passed to a function outside the class
  3. No, can’t be passed outside the class
  4. No, can’t be done

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

 (b).Yes, only if the data members are public and are being passed to a function outside the class

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

OBJECT ORIENTED PROGRAMMING - OBJECTS AND POINTERS MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
What exactly is passed when an object is passed by... >>
<< If an object is passed by value, _________________...