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 From Problem Analysis
Quiz 13: Overloading and Templates
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 1
Multiple Choice
Every object of a class maintains a (hidden) pointer to itself, and the name of this pointer is ____.
Question 2
Multiple Choice
The function that overloads the ____ operator for a class must be declared as a member of the class.
Question 3
Multiple Choice
Which of the following function prototypes overloads the != operator for the class rectangleType?
Question 4
True/False
The declaration of a friend function cannot be placed within the private part of the class.
Question 5
Multiple Choice
The return type of the function operator == is ____.
Question 6
True/False
A friend function does not have access to the private data members of the class.
Question 7
Multiple Choice
The general form of the functions to overload the binary operators as member functions of a class is returnType operator#(____ className&) const;.
Question 8
True/False
Both parameters of the function to overload the operator << are reference parameters.
Question 9
True/False
The associativity of the operator = is from right to left.
Question 10
Multiple Choice
The general syntax to overload the stream extraction operator >> for a class is ____.
Question 11
Multiple Choice
The name of the function to overload the operator <= is ____.
Question 12
True/False
In C++, operator is a reserved word.
Question 13
True/False
Operator functions typically return void.
Question 14
Multiple Choice
When an object invokes a member function, the member function references the pointer ____ of the object.
Question 15
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&) ;