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...

What attributes does every file have?

What will be an ideal response?

Computer Science & Information Technology

Case-Based Critical Thinking QuestionsCase 4-2Jake is an expert in the use of the Property inspector to create precisely the attributes he needs for the AP divs that he creates, with regard to when the AP div's content is displayed or hidden and how it relates to its parent AP div if it is nested. Jake has an AP div that he wants to not be displaying when the page is loaded. Which of the following settings does he use?

A. Invisible B. Concealed C. Hidden D. Reveal

Computer Science & Information Technology