In C++, two string expressions can be compared by using relational operators or the ____ class’s comparison methods.

a. string
b. boolean
c. object
d. compareTo

a. string

Computer Science & Information Technology

You might also like to view...

What mistake prevents the following class declaration from functioning properly as an abstract class?

class Shape { public: virtual double print() const; double area() const { return base * height; } private: double base; double height; }; a. There are no pure virtual functions. b. There is a non-virtual function. c. private variables are being accessed by a public function. d. Nothing, it functions fine as an abstract class.

Computer Science & Information Technology

Analysis and Design Questions

What will be an ideal response?

Computer Science & Information Technology