Exam 8: More Object Concepts

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

When you override a method in a child class, you create a method with the same name and ____________________ as the parent's version.

(Short Answer)
4.9/5
(34)

Using inheritance saves time since you do not need to recreate a class's methods and data fields.

(True/False)
4.8/5
(43)

A superclass is the same thing as a derived class.

(True/False)
4.8/5
(28)

A(n) ____________________ class is one from which you can inherit, but not create, any object.

(Short Answer)
4.8/5
(35)

All default constructors are automatically supplied.

(True/False)
4.8/5
(30)

A child class contains all the data fields and ____ of its parent.

(Multiple Choice)
4.9/5
(39)

A method in a parent class must be ____________________ in order to be used by the child class.

(Short Answer)
4.8/5
(37)

The ____________________ of a subclass consist of the entire list of parent classes from which a child class is derived.

(Short Answer)
5.0/5
(35)

You can write as many constructors for a class as you want, as long as they all have different ____ lists.

(Multiple Choice)
4.9/5
(41)

A class's ____constructor is automatically supplied.

(Multiple Choice)
4.8/5
(32)

A(n) ____________________ conversion is made whenever you assign a derived class object to an object of any types that are ancestors.

(Short Answer)
4.9/5
(44)

Methods that are inherited from a parent class can be overridden.

(True/False)
4.8/5
(37)

If the class Poodle inherits from the class Dog, then Dog is a(n) ____________________ of Poodle.

(Short Answer)
4.8/5
(23)

When a superclass contains only constructors that require arguments, you must include at least ____ constructor(s) for each subclass you create.

(Multiple Choice)
5.0/5
(38)

In some programming languages, such as C#, Visual Basic, and Java, every class you create is a child of one ultimate base class, often called the ____ class.

(Multiple Choice)
5.0/5
(38)

A destructor cannot execute unless it is explicitly called from a program.

(True/False)
4.7/5
(39)

Reliable code has been thoroughly ____________________ and can probably be used in a variety of situations.

(Short Answer)
4.9/5
(31)

One way to give a child class access to a private data field in a parent class is to make the data field public in the parent class.

(True/False)
4.9/5
(42)

A superclass member that is not hidden is invisible in the derived class.

(True/False)
4.8/5
(30)

A destructor contains the actions you require when an instance of a class is destroyed.

(True/False)
4.8/5
(30)
Showing 21 - 40 of 50
close modal

Filters

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