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&);


Answer: D

Computer Science & Information Technology

You might also like to view...

A friend function needs to be passed an object of the class. If the friend only needs to access the object, but not change its data members, then the object should be passed as _______________

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Data stored in a file is considered:

a) temporary data b) persistent data c) recurring data d) there is no need to store data in files

Computer Science & Information Technology

Digital video uses bits to store color and brightness data for pixels in a video frame.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

You can restore a deleted layer during the current editing session by deleting the ____________________ state on the History panel.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology