Exam 11: Object-Oriented Programming: Inheritance

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

When creating derived classes,you must use discretion in choosing the proper base class.Ideally,the base class will not contain excessive capabilities or information.

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

True

Constructors are not inherited.

Free
(True/False)
4.9/5
(31)
Correct Answer:
Verified

True

A derived class can effect state changes in base class private members only through public,protected,internal methods provided in the base class and inher ited into the derived class.

Free
(True/False)
4.8/5
(37)
Correct Answer:
Verified

True

Which of the following is not a base/derived class relationship

(Multiple Choice)
4.7/5
(28)

Base class methods with this level of access cannot be called from derived classes.

(Multiple Choice)
4.9/5
(37)

Inheritance is the process of building a class with object references of other classes.

(True/False)
4.9/5
(25)

The default implementation of method ToString of object returns a string representing ________.

(Multiple Choice)
4.9/5
(33)

An object of one class cannot be an object of another class.

(True/False)
4.8/5
(41)

A derived class cannot access the members of its base class.

(Multiple Choice)
4.7/5
(38)

A base class may have only one derived class.

(True/False)
4.9/5
(40)

Identify which of the following examples could be considered a base class for the Computer class

(Multiple Choice)
4.7/5
(38)

Inheritance is represented by a(n)________ relationship.

(Multiple Choice)
4.7/5
(42)

To enhance performance and reduce errors,it's a good idea to make derived classes larger than they need to be.

(True/False)
4.8/5
(33)

Method Equals will accurately compare any two objects.

(True/False)
4.9/5
(34)

The process of abstraction allows you to focus on the commonalities among objects in the system.

(True/False)
5.0/5
(30)

A method must be declared __________ for it to be overridden by derived classes.

(Multiple Choice)
4.9/5
(35)

Which of the following classes is the root of the class hierarchy

(Multiple Choice)
4.8/5
(41)

Which statement is true when a base class has protected instance variables

(Multiple Choice)
4.8/5
(33)

The default Equals implementation determines:

(Multiple Choice)
4.9/5
(39)

When a base class method is overridden in a derived class,it is common to have the derived class version call the base class version and do some additional work.

(True/False)
4.8/5
(36)
Showing 1 - 20 of 51
close modal

Filters

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