Exam 12: Adding Functionality to Your Classes

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

A built-in to built-in conversion is handled by C++ s implicit conversion rules or its explicit ___________________ operator.

(Short Answer)
4.8/5
(28)

Setting up a conversion makes sense only when there s a(n) ____ relationship between data types.

(Multiple Choice)
4.8/5
(40)

Class data members are ____________________ in scope to objects created from the class.

(Short Answer)
4.7/5
(30)

Converting from a class to a class is done in the same manner as a conversion from a class to a built-in data type.

(True/False)
4.9/5
(26)

____ class variables are allocated memory locations independent of any object being instantiated.

(Multiple Choice)
4.9/5
(37)

An object s data member takes precedence over a global variable of the same name.

(True/False)
4.8/5
(34)

There are two categories of scope: local and ____________________.

(Short Answer)
4.8/5
(40)

When a derived class object is assigned to a base class object, only the set of all the ____ class data members is assigned.

(Multiple Choice)
4.9/5
(34)

A ____ function tells the compiler to create a pointer to a function but not fill in the pointer s value until the function is actually called.

(Multiple Choice)
4.8/5
(37)

Overloading the insertion ( >) operators for class use requires creating operator functions that use these symbols but have a parameter list that includes a class ____.

(Multiple Choice)
5.0/5
(44)
Showing 41 - 50 of 50
close modal

Filters

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