Exam 11: Friends, overloaded Operators, and Arrays in Classes

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

How many parameters are there in a binary operator implemented as a friend?

(Multiple Choice)
4.9/5
(35)

What member functions do you need to allow the compiler to perform automatic type conversions from a type different than the class to the class?

(Multiple Choice)
4.8/5
(47)

The copy constructor for a class is called

(Multiple Choice)
5.0/5
(37)

If you have mutators and accessors,you should not have friend functions also

(True/False)
4.8/5
(30)

Friend functions may directly modify or access the private data members.

(True/False)
4.9/5
(40)

Which of the following are not correct?

(Multiple Choice)
4.9/5
(32)

Write the function declaration for an assignment operator for a class named myClass

(Essay)
4.9/5
(36)

In an overloaded insertion or extraction operator,which object should be the first parameter,the stream or the object of the class?

(Multiple Choice)
4.9/5
(34)

Operators can be overloaded as

(Multiple Choice)
4.9/5
(36)
Showing 41 - 49 of 49
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)