Why should you generally pass an object of the class to a friend function as a reference parameter?
A) If the friend function changes the values of the data members) .
B) If the friend function will not change the values of the data members) .
C) It is more efficient to pass the object by reference.
D) A and B
E) A and C
Correct Answer:
Verified
Q33: What is wrong with the following overloaded
Q34: Since accessor functions in a class do
Q35: Write the function declaration for a destructor
Q36: Both the copy constructor and the assignment
Q37: Given the following class, what is syntactically
Q39: How many parameters are there in a
Q40: If we have a full selection of
Q41: What member functions do you need to
Q42: Given the following function declaration,
Friend void displayconst
Q43: The destructor for a class is called
A)
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents