Vidyalelo
Computer Science · Q399

Object Oriented Programming Using C++

Engineering and GATE · Computer Science · question 399

Q399

We can output text to an object of class ofstream using the insertion operator « because

A.
the ofstream class is a stream
B.
the insertion operator works with all classes
C.
we are actually outputting to cout
D.
the insertion operator is overloaded in ofstream
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board