Exam 8: More Object Concepts

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

A ____________________ is declared with the class name preceded by a tilde (~), and you supply no arguments.

Free
(Short Answer)
4.8/5
(39)
Correct Answer:
Verified

destructor

Professional programmers constantly create new class ____________________ for use with OOP languages.

Free
(Short Answer)
4.8/5
(37)
Correct Answer:
Verified

libraries

A(n) ____________________ is used as the basis for inheritance.

Free
(Short Answer)
4.9/5
(31)
Correct Answer:
Verified

base class

Code that has been used and tested is said to be ____.

(Multiple Choice)
4.9/5
(44)

A(n) ___________________ is another name for a child class and derived class.

(Short Answer)
4.9/5
(42)

The capability to inherit from more than one class is called ____________________.

(Short Answer)
4.7/5
(35)

Derived classes usually have fields and methods that are more ____ than those of their parent classes.

(Multiple Choice)
4.7/5
(39)

When a data field is private, it is said to be ____ to any class other than the one in which it is defined.

(Multiple Choice)
4.8/5
(35)

If a class's only constructor requires an argument, you must provide an argument for every object of the class you create.

(True/False)
4.8/5
(31)

The type of polymorphism that applies specifically to objects of the same parent class is sometimes called ____ polymorphism.

(Multiple Choice)
4.9/5
(29)

Classes that depend on field names from parent classes are said to be ____________________ because they are prone to errors.

(Short Answer)
4.8/5
(38)

What is accomplished when you assign a derived class object to an object of any of its superclass types?

(Multiple Choice)
5.0/5
(39)

A(n) ____ cannot be overloaded.

(Multiple Choice)
4.8/5
(34)

____ is the process of creating a new, derived class from a base class.

(Multiple Choice)
4.8/5
(41)

When a superclass requires parameters upon instantiation, even if you have no other reason to create a(n) ____, you must write one so it can call its superclass's constructor.

(Multiple Choice)
4.8/5
(40)

An ____ child class method contains the same name and parameters as the parent class method.

(Multiple Choice)
4.7/5
(40)

An instance method or constructor may be overloaded by providing the same name and ____ argument list.

(Multiple Choice)
4.9/5
(42)

When you instantiate an object that is a member of a class, you are actually calling a constructor method.

(True/False)
4.9/5
(36)

The ____________________ establishes an object by reserving enough memory space for it and possibly initializing member variables.

(Short Answer)
4.9/5
(39)

An ____ child class method has the same name and different parameter list as the parent class method.

(Multiple Choice)
4.8/5
(42)
Showing 1 - 20 of 50
close modal

Filters

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