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
Problem Solving with C++ Study Set 1
Quiz 11: Friends, Overloaded Operators, and Arrays in Classes
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 1
True/False
Operators must be friends of the class.
Question 2
True/False
Friend functions may directly modify or access the private data members.
Question 3
True/False
Functions that are constant member functions may call constant class accessor functions.
Question 4
Essay
Putting the keyword const after the function declaration guarantees __________________________
Question 5
True/False
If you have mutators and accessors, you should not have friend functions also
Question 6
Short Answer
If a given task being performed by a function involves one object, then that function should normally be a __________ function.
Question 7
True/False
Functions that are constant member functions may call the class mutator functions.
Question 8
True/False
You cannot create new operators such as the quote).
Question 9
Essay
In order to do automatic type conversion for your class, you would write _________
Question 10
Short Answer
An operator that expects two parameters is called a ________ operator.
Question 11
Short Answer
An overloaded extraction or insertion operator should return ___________
Question 12
Essay
Putting the keyword const in front of a pass by reference parameter guarantees ___________________
Question 13
True/False
The following is a properly declared overloaded insertion operator for myClass. ostream& operator <<ostream &out, const myClass &obj);
Question 14
Short Answer
A friend function needs to be passed an object of the class. If the friend only needs to access the object, but not change its data members, then the object should be passed as _______________