Exam 11: Inheritance and Composition

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

The ____ members of an object form its external state.

(Multiple Choice)
4.8/5
(80)

A derived class can directly access the protected members of the base class.

(True/False)
4.9/5
(89)

OOP implements ____.

(Multiple Choice)
4.9/5
(77)

Suppose that bClass is a class. Which of the following statements correctly derives the class dClass from bClass?

(Multiple Choice)
4.9/5
(79)

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

(True/False)
4.8/5
(72)

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

(Short Answer)
4.8/5
(75)

In multiple inheritance, the derived class has more than one base class.

(True/False)
4.9/5
(86)

In OOD, a program is a collection of interacting ____________________; in structured programming, a program is a collection of interacting functions.

(Short Answer)
4.9/5
(81)

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.8/5
(81)

Which of the following is true about inheritance?

(Multiple Choice)
5.0/5
(53)

The ____ members of an object form its internal state.

(Multiple Choice)
4.9/5
(72)

What is the output of the following program? What is the output of the following program?

(Multiple Choice)
4.9/5
(67)

Inheritance is an example of a(n) ____ relationship.

(Multiple Choice)
4.8/5
(73)

____ is a "has-a" relationship.

(Multiple Choice)
4.7/5
(84)

Existing classes, from which you create new classes, are called ____ classes.

(Multiple Choice)
4.8/5
(85)

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

(Multiple Choice)
4.9/5
(74)

____ is the ability to use the same expression to denote different operations.

(Multiple Choice)
4.8/5
(84)

Classes can create new classes from existing classes. This important feature ____.

(Multiple Choice)
4.8/5
(88)

The preprocessor directive ____________________ is used to prevent multiple inclusions of a header file in a program.

(Short Answer)
4.8/5
(74)

The class io is the base class of the C++ stream classes istream and ostream.

(True/False)
4.8/5
(86)
Showing 21 - 40 of 41
close modal

Filters

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