Exam 11: More Object-Oriented Programming Concepts

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

You can create constructors for a class with or without parameters.

(True/False)
4.7/5
(37)

The relationship created with composition is called a(n)____ relationship.

(Multiple Choice)
4.9/5
(36)

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

(Multiple Choice)
4.8/5
(31)

Describe the components of a try block.

(Essay)
4.8/5
(29)

List the elements you would use to create a catch block.

(Essay)
4.8/5
(31)

Explain constructors.

(Essay)
5.0/5
(29)

Match each term with a statement below. -A segment of code that can handle an exception that might be thrown by the try block that precedes it

(Multiple Choice)
5.0/5
(26)

When a data field within a class is ____,no outside class can use it-including a child class.

(Multiple Choice)
4.8/5
(38)

Any constructor you write must have the same name as the class it constructs,and it cannot have a return type.

(True/False)
4.7/5
(27)

When using existing objects,you need to concentrate only on the interface to those objects,not on the internal instructions that make them work.

(True/False)
4.8/5
(42)

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

(Multiple Choice)
4.9/5
(37)

A method's name and a list of argument types together are its ____.

(Multiple Choice)
4.8/5
(34)

An instance of a class becomes eligible for destruction when it is no longer possible for any code to use it-that is,when it goes out of ____________________.

(Short Answer)
4.8/5
(34)

Discuss the general principle of exception handling in object-oriented programming.

(Essay)
4.9/5
(42)

Explain how to create your own throwable Exception.

(Essay)
4.9/5
(37)

The most common way to declare a destructor explicitly is to use an identifier that consists of ____.

(Multiple Choice)
4.9/5
(29)

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

(Multiple Choice)
4.8/5
(35)

In object-oriented terminology,the generic name used for errors is ____.

(Multiple Choice)
4.7/5
(44)

You cannot provide parameters to a destructor;it must have an empty parameter list.

(True/False)
4.8/5
(36)

A derived class always ____ case or instance of the more general base class.

(Multiple Choice)
4.9/5
(34)
Showing 41 - 60 of 60
close modal

Filters

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