Which of the following could be a correct prototype of a function that will overload the extraction operator (>>) for objects of type car (already defined).

a) friend istream& operator >> (istream&, const car&);
b) friend istream& operator >> (istream&, car&);
c) istream& car::operator >> (istream&, const car&);
d) istream& operator >> (istream&, const car&);


b) friend istream& operator >> (istream&, car&);

Computer Science & Information Technology

You might also like to view...

In the modified image, one hot air balloon is a different location than in the before image. Which shortcut key does your cousin say he used to make the adjustment?

a. Letter M b. Letter V c. ESC d. SHIFT + ALT

Computer Science & Information Technology

Which of the following relative pathnames is interpreted as “the parks.htm file is in the extra subfolder, which is one level down from the current folder”?

a. extra/parks.htm b. ../extra/parks.htm c. ./extra/parks.htm d. /extra/parks.htm

Computer Science & Information Technology

What are the essential goals of disk scheduling?Why is each important?

What will be an ideal response?

Computer Science & Information Technology

Variables that are shared by every instances of a class are __________.

A. instance variables B. private variables C. public variables D. static variables

Computer Science & Information Technology