Services
Discover
Homeschooling
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
C++ Programming Study Set 1
Quiz 13: Overloading and Templates
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 1
True/False
In C++, >> is used as a stream extraction operator and as a right shift operator.
Question 2
True/False
Most operator functions can either be member functions or nonmember functions of a class.
Question 3
True/False
The declaration of a friend function cannot be placed within the private part of the class.
Question 4
Multiple Choice
The function that overloads the ____ operator for a class must be declared as a member of the class.
Question 5
True/False
Operator functions typically return void.
Question 6
True/False
The associativity of the operator = is from right to left.
Question 7
True/False
Operators can be overloaded either for objects of the user-defined types, or for a combination of objects of the user-defined type and objects of the built-in type.
Question 8
Multiple Choice
Which of the following function prototypes overloads the != operator for the class rectangleType?
Question 9
Multiple Choice
The name of the function to overload the operator <= is ____.
Question 10
Multiple Choice
Every object of a class maintains a (hidden) pointer to itself, and the name of this pointer is ____.
Question 11
Multiple Choice
The general syntax to overload the stream extraction operator >> for a class is ____.
Question 12
Multiple Choice
To include the operator function operator+ as a nonmember function of the class rectangleType, its prototype in the definition of rectangleType is: ____ rectangleType operator+(const rectangleType&, const rectangleType&) ;