Exam 12: Object-Oriented Programming: Inheritance

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

Protected base class members cannot be accessed by:

Free
(Multiple Choice)
4.9/5
(46)
Correct Answer:
Verified

A

Which of the following is not a kind of inheritance in C++?

Free
(Multiple Choice)
4.8/5
(39)
Correct Answer:
Verified

C

Public CommissionEmployee Which of the following is false?

Free
(Multiple Choice)
4.8/5
(33)
Correct Answer:
Verified

C

Base class constructors and assignment operators:

(Multiple Choice)
4.9/5
(42)

When should base class members be declared protected?

(Multiple Choice)
4.9/5
(35)

From most restrictive to least restrictive, the access modifiers are:

(Multiple Choice)
4.9/5
(46)

CommissionEmployee first, last, ssn, sales, rate ) The second line:

(Multiple Choice)
4.9/5
(29)

Suppose class A inherits from base class B. What is the order in which their constructors and destructors will be called when an object of class A is instantiated and then destroyed?

(Multiple Choice)
4.8/5
(36)

The is-a relationship represents.

(Multiple Choice)
4.8/5
(33)

Which of the following is most likely a base class of the other three?

(Multiple Choice)
4.7/5
(36)

To declare class subClass a privately derived class of superClass one would write:

(Multiple Choice)
4.8/5
(34)

Select the false statement regarding inheritance.

(Multiple Choice)
4.9/5
(40)

Which of the following is not one of the disadvantages of using the "copy-and-paste" approach to duplicating code from one class into another class?

(Multiple Choice)
4.8/5
(36)

When an object of a derived class is instantiated, the __________ constructor initializes the _________ members.

(Multiple Choice)
4.9/5
(35)

Which of the following is true about using inheritance in software engineering?

(Multiple Choice)
4.8/5
(44)

Theoretically, clients do not need to see the _________ of classes from which they derive other classes.

(Multiple Choice)
4.7/5
(33)

Which of the following is not a good example of a hierarchy likely to be modeled by inheritance?

(Multiple Choice)
4.8/5
(43)

Which forms of inheritance are is-a relationships?

(Multiple Choice)
4.7/5
(38)

When deriving a class from a protected base class, the public members of the base class become _________ and the protected members of the base class become __________?

(Multiple Choice)
4.9/5
(30)
close modal

Filters

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