
The general syntax of the function prototype to overload the stream extraction operator >> for a class is ____.
A) istream& operator>>(istream&, className&) ;
B) const istream& operator>>(istream&, className&) ;
C) friend operator>>(istream&, className&) ;
D) friend istream& operator>>(istream&, className&) ;
Correct Answer:
Verified
Q2: The declaration of a friend function cannot
Q3: A(n) _ function is a nonmember function
Q5: Both parameters of the function to overload
Q6: The function that overloads the _ operator
Q7: In C++, >> is used as a
Q8: When writing the definition of a friend
Q13: The general form of the functions to
Q14: The name of the function to overload
Q15: A friend function does not have access
Q18: Every object of a class maintains 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