Exam 13: Overloading and Templates

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

What does these terms refer to: - \gg Operator overloading:

Free
(Short Answer)
4.8/5
(38)
Correct Answer:
Verified

allows the programmer to extend the definitions of most of the standard operators so that operators-such as relational operators, arithmetic operators, the insertion operator for data output, and the extraction operator for data input-can be used to manipulate class objects

What does these terms refer to: - \gg Template:

Free
(Short Answer)
4.9/5
(35)
Correct Answer:
Verified

a C++ feature that enables the programmer to write generic code for functions and classes

The stream extraction and stream insertion operators must be overloaded as member functions.

Free
(True/False)
4.7/5
(40)
Correct Answer:
Verified

True

What does these terms refer to: - \gg Friend function:

(Short Answer)
4.8/5
(25)

What does these terms refer to: - \gg Parameterized types:

(Short Answer)
4.9/5
(38)

The function heading for an operator function uses the reserved word ____________________.

(Short Answer)
4.9/5
(41)

C++ simplifies the process of overloading functions by providing ____________________.

(Short Answer)
4.8/5
(49)

The associativity of an operator can be modified in an overloaded operator function.

(True/False)
4.8/5
(29)

Which operator functions cannot be overloaded as friend functions?

(Short Answer)
4.7/5
(44)

What is operator overloading?

(Short Answer)
4.8/5
(41)

Every object maintains a hidden pointer to itself called the ____________________ pointer.

(Short Answer)
4.7/5
(34)

Class templates are also called ____________________ types.

(Short Answer)
4.9/5
(43)

What does these terms refer to: - \gg Operator function:

(Short Answer)
4.7/5
(40)

What does these terms refer to: - \gg Conversion constructor:

(Short Answer)
4.9/5
(42)

A(n) ____________________ function is a nonmember function that has access to all the public and private variables of a class.

(Short Answer)
4.7/5
(29)

What does these terms refer to: - \gg Class template:

(Short Answer)
4.8/5
(35)

Including multiple constructors of a class is an example of function overloading.

(True/False)
4.8/5
(40)

The body of an overloaded assignment operator should include self-assignments.

(True/False)
4.9/5
(43)

What does these terms refer to: - \gg Complex number:

(Short Answer)
4.7/5
(38)

A template instantiation can only be created with a built-in type.

(True/False)
4.8/5
(29)
Showing 1 - 20 of 21
close modal

Filters

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