Solved

The General Syntax to Overload the Stream Extraction Operator >>

Question 32

Multiple Choice

The general syntax 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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions