Exam 11: Inheritance and Composition

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

In protected inheritance, public and protected members of the base class become the protected members of the derived class.

(True/False)
4.9/5
(34)

The term ____________________ is used to describe the ability to create new objects from existing objects.

(Short Answer)
4.8/5
(38)

To define new classes in C++, you create new ____________________ files.

(Short Answer)
4.8/5
(39)

____ is the ability to combine data, and operations on that data, in a single unit.

(Multiple Choice)
4.8/5
(41)

In ____________________ (aggregation), one or more members of a class are objects of another class type.

(Short Answer)
4.8/5
(32)

If inheritance is private, all members of the base class, including private members, become private members of the derived class.

(True/False)
4.9/5
(32)

In the case of composition, the ____________________ name is used to invoke the constructor.

(Short Answer)
4.8/5
(35)

In C++, we implement ADT through the use of ____________________.

(Short Answer)
4.8/5
(36)

In object-oriented design, we debug ____________________; in structured programming, we debug functions.

(Short Answer)
4.9/5
(31)

If the derived class classD overrides a public member function functionName of the base class classB, then to specify a call to that public member function of the base class you use the statement ____.

(Multiple Choice)
4.9/5
(38)
Showing 41 - 50 of 50
close modal

Filters

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