Exam 14: More About Classes

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

When objects contain pointers, it is a good idea to create an explicit ________ function.

(Multiple Choice)
4.9/5
(75)

If you do not furnish one of these a default will be provided for you by the compiler.

(Multiple Choice)
4.8/5
(77)

The this pointer is a special built-in pointer that is automatically passed as a hidden argument to all non-static member functions.

(True/False)
4.9/5
(85)

You may overload any C++ operator, and you may use the operator function to define non-standard operators, such as @ and ^.

(True/False)
4.8/5
(81)

If you do not furnish one of these, an automatic memberwise copy will be performed when one object is assigned to another object.

(Multiple Choice)
4.9/5
(82)

Each object of a class has its own copy of the class's

(Multiple Choice)
4.9/5
(72)

When a class declares an entire class as its friend, the friendship status is reciprocal. That is, each class's member functions have free access to the other's private members.

(True/False)
4.7/5
(79)

This type of function is not a member of a class, but it has access to the private members of the class.

(Multiple Choice)
4.9/5
(86)

The this pointer is automatically passed to non-static member functions of a class.

(True/False)
5.0/5
(68)

This is a special function that is called whenever a new object is created and initialized with another object's data.

(Multiple Choice)
4.9/5
(83)

It is a good idea to make a copy constructor's parameters __________ by specifying the _________ keyword in the parameter list.

(Multiple Choice)
4.8/5
(77)

This operator may be used to assign one object to another.

(Multiple Choice)
4.8/5
(77)

In C++, if you overload the < operator, you must also overload the > operator.

(True/False)
4.7/5
(89)

In the following function header, FeetInches FeetInches::operator++(int) The word (int) is known as a:

(Multiple Choice)
4.7/5
(85)

When you redefine the way a standard operator works when it is used with class objects, you have ____________ the operator.

(Multiple Choice)
4.8/5
(80)

When you overload an operator, you cannot change the number of ________ taken by the operator.

(Multiple Choice)
4.9/5
(75)

A(n) ___________ informs the compiler that a class will be declared later in the program.

(Multiple Choice)
4.8/5
(85)

A static member variable can be used when there are no objects of the class in existence.

(True/False)
4.8/5
(64)

If a member variable is declared ____________, all objects of that class have access to that variable.

(Multiple Choice)
4.9/5
(71)

When you overload the << operator, you must also overload the >> operator.

(True/False)
4.7/5
(73)
Showing 21 - 40 of 40
close modal

Filters

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