Which of the following is a C++ class? A. >> B. read() C. cin D. iostream

”>>”
”read()”
”cin”
”iostream”

The correct answer is D. iostream.

A class is a blueprint for creating objects. It defines the data and

behavior that objects of that type will have.

is a stream insertion operator. It is used to insert data into a stream.

read() is a function that reads data from a file.

cin is a stream object that represents the standard input stream.

iostream is a header file that contains declarations for the stream classes.