Deck 11: More Object Oriented Programming Concepts

Full screen (f)
exit full mode
Question
The built-in Exception s in a programming language can cover every condition that might be an Exception in your applications.
Use Space or
up arrow
down arrow
to flip the card.
Question
You can create constructors for a class with or without parameters.
Question
The most common way to declare a destructor explicitly is to use an identifier that consists of ____.

A) a colon followed by the class name
B) a period followed by the class name
C) a tilde followed by the class name
D) an exclamation mark followed by the class name
Question
If a constructor requires arguments, it is a ____ constructor.

A) reliable
B) private
C) default
D) nondefault
Question
A(n) ____ in a class diagram indicates public access.

A) minus sign
B) diamond
C) plus sign
D) exclamation point
Question
By using standard component classes, programmers are assured that the GUI components in their programs have the same look and feel as those in other programs.
Question
The entire list of parent classes from which a child class is derived constitutes the ____ of the subclass.

A) children
B) ancestors
C) subordinates
D) derivatives
Question
When using existing objects, you need to concentrate only on the interface to those objects, not on the internal instructions that make them work.
Question
A derived class always ____ case or instance of the more general base class.

A) has a
B) makes a
C) redefines a
D) is a
Question
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.

A) Top
B) Object
C) Ultimate
D) Mega
Question
It makes sense that a parent class object has access to its child's data and methods.
Question
An abstract class is one from which you can create any concrete objects and from which you can inherit.
Question
You cannot provide parameters to a destructor; it must have an empty parameter list.
Question
Any constructor you write must have the same name as the class it constructs, and it cannot have a return type.
Question
The relationship created with composition is called a(n) ____ relationship.

A) is-a
B) has-a
C) with-a
D) child
Question
When properly used, inheritance always involves a ____ relationship.

A) specific-to-general
B) general-to-specific
C) specific-to-specific
D) general-to-general
Question
A class that is used as a basis for inheritance is called a ____ class or a superclass.

A) base
B) bottom
C) platform
D) derived
Question
In object-oriented terminology, "default constructor" means a constructor with a single standard parameter.
Question
In OOP languages, a default constructor is created automatically by the compiler for every class you write.
Question
A method's name and a list of argument types together are its ____.

A) signature
B) header
C) profile
D) interface
Question
____ are stored collections of classes that serve related purposes

A) Libraries
B) Constructors
C) IDE
D) Destructors
Question
Code that has already been tested and used in a variety of situations is said to be ____.

A) protected
B) private
C) overloaded
D) reliable
Question
When using ____________________, you can develop new classes more quickly by extending classes that already exist and work.
Question
If an exception is thrown, it is passed to a block of code that can ____, which means to receive it in a block that can handle the problem.

A) catch the exception
B) raise the exception
C) hold the exception
D) try the exception
Question
In traditional programming, probably the most often used error-handling outcome was to ____.

A) terminate the program in which the offending statement occurred
B) ignore the error
C) handle the error
D) ask the user for additional input
Question
In object-oriented terminology, the generic name used for errors is ____.

A) bugs
B) undefined branches
C) interfaces
D) exceptions
Question
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 ____________________.
Question
Classes that depend on field names from parent classes are said to be ____ because they are prone to errors.

A) robust
B) innovative
C) fragile
D) constructive
Question
Programmers sometimes refer to a situation in which nothing goes wrong as the ____ case.

A) rainbow day
B) sunny day
C) cloudy day
D) pessimistic
Question
The capability to inherit from more than one class is called ____ inheritance.

A) poly
B) multiple
C) branch
D) dual
Question
When you create a segment of code in which something might go wrong, you place the code in a ____ block.

A) throw
B) hold
C) try
D) catch
Question
____________________ is the mechanism by which a child class method is used by default when a parent class contains a method with the same signature.
Question
By using ____, you can use reasonable, easy-to-remember names for methods and concentrate on their purpose rather than on memorizing different method names.

A) inheritance
B) inference
C) polymorphism
D) relationships
Question
Libraries, collections of classes that serve related purposes, are also called ____________________.
Question
You almost always code at least one catch block immediately following a(n) ____________________ block.
Question
In several languages, the visual development environment is known by the acronym ____.

A) IDE
B) XML
C) ODI
D) IPE
Question
Object-oriented programs employ a more specific group of techniques for handling errors called ____.

A) exception raising
B) exception management
C) exception handling
D) garbage collection
Question
When a data field within a class is ____, no outside class can use it-including a child class.

A) reliable
B) fragile
C) private
D) protected
Question
Programmers use the phrase ____ to describe what happens when worthless or invalid input causes inaccurate or unrealistic results.

A) WIGO
B) GOGI
C) LIFO
D) GIGO
Question
When you purchase or download a(n) ____ for an object-oriented programming language, it comes packaged with many predefined, built-in classes.

A) compiler
B) IDE
C) sunny day case
D) interpreter
Question
Match between columns
Used when you want no outside classes to be able to use a data field, except classes that are children of the original class
constructor
Used when you want no outside classes to be able to use a data field, except classes that are children of the original class
destructor
Used when you want no outside classes to be able to use a data field, except classes that are children of the original class
composition
Used when you want no outside classes to be able to use a data field, except classes that are children of the original class
protected access specifier
Used when you want no outside classes to be able to use a data field, except classes that are children of the original class
abstract
Used when you want no outside classes to be able to use a data field, except classes that are children of the original class
libraries
Used when you want no outside classes to be able to use a data field, except classes that are children of the original class
exceptions
Used when you want no outside classes to be able to use a data field, except classes that are children of the original class
throw statement
Used when you want no outside classes to be able to use a data field, except classes that are children of the original class
try block
Used when you want no outside classes to be able to use a data field, except classes that are children of the original class
catch block
A class from which you cannot create any concrete objects, but from which you can inherit
constructor
A class from which you cannot create any concrete objects, but from which you can inherit
destructor
A class from which you cannot create any concrete objects, but from which you can inherit
composition
A class from which you cannot create any concrete objects, but from which you can inherit
protected access specifier
A class from which you cannot create any concrete objects, but from which you can inherit
abstract
A class from which you cannot create any concrete objects, but from which you can inherit
libraries
A class from which you cannot create any concrete objects, but from which you can inherit
exceptions
A class from which you cannot create any concrete objects, but from which you can inherit
throw statement
A class from which you cannot create any concrete objects, but from which you can inherit
try block
A class from which you cannot create any concrete objects, but from which you can inherit
catch block
A method that has the same name as a class and that establishes an object
constructor
A method that has the same name as a class and that establishes an object
destructor
A method that has the same name as a class and that establishes an object
composition
A method that has the same name as a class and that establishes an object
protected access specifier
A method that has the same name as a class and that establishes an object
abstract
A method that has the same name as a class and that establishes an object
libraries
A method that has the same name as a class and that establishes an object
exceptions
A method that has the same name as a class and that establishes an object
throw statement
A method that has the same name as a class and that establishes an object
try block
A method that has the same name as a class and that establishes an object
catch block
When a class contains objects of another class
constructor
When a class contains objects of another class
destructor
When a class contains objects of another class
composition
When a class contains objects of another class
protected access specifier
When a class contains objects of another class
abstract
When a class contains objects of another class
libraries
When a class contains objects of another class
exceptions
When a class contains objects of another class
throw statement
When a class contains objects of another class
try block
When a class contains objects of another class
catch block
Errors in object-oriented languages
constructor
Errors in object-oriented languages
destructor
Errors in object-oriented languages
composition
Errors in object-oriented languages
protected access specifier
Errors in object-oriented languages
abstract
Errors in object-oriented languages
libraries
Errors in object-oriented languages
exceptions
Errors in object-oriented languages
throw statement
Errors in object-oriented languages
try block
Errors in object-oriented languages
catch block
Sends an Exception object out of the current code block or method so it can be handled elsewhere
constructor
Sends an Exception object out of the current code block or method so it can be handled elsewhere
destructor
Sends an Exception object out of the current code block or method so it can be handled elsewhere
composition
Sends an Exception object out of the current code block or method so it can be handled elsewhere
protected access specifier
Sends an Exception object out of the current code block or method so it can be handled elsewhere
abstract
Sends an Exception object out of the current code block or method so it can be handled elsewhere
libraries
Sends an Exception object out of the current code block or method so it can be handled elsewhere
exceptions
Sends an Exception object out of the current code block or method so it can be handled elsewhere
throw statement
Sends an Exception object out of the current code block or method so it can be handled elsewhere
try block
Sends an Exception object out of the current code block or method so it can be handled elsewhere
catch block
Collections of classes that serve related purposes
constructor
Collections of classes that serve related purposes
destructor
Collections of classes that serve related purposes
composition
Collections of classes that serve related purposes
protected access specifier
Collections of classes that serve related purposes
abstract
Collections of classes that serve related purposes
libraries
Collections of classes that serve related purposes
exceptions
Collections of classes that serve related purposes
throw statement
Collections of classes that serve related purposes
try block
Collections of classes that serve related purposes
catch block
A block of code you attempt to execute while acknowledging that an exception might occur
constructor
A block of code you attempt to execute while acknowledging that an exception might occur
destructor
A block of code you attempt to execute while acknowledging that an exception might occur
composition
A block of code you attempt to execute while acknowledging that an exception might occur
protected access specifier
A block of code you attempt to execute while acknowledging that an exception might occur
abstract
A block of code you attempt to execute while acknowledging that an exception might occur
libraries
A block of code you attempt to execute while acknowledging that an exception might occur
exceptions
A block of code you attempt to execute while acknowledging that an exception might occur
throw statement
A block of code you attempt to execute while acknowledging that an exception might occur
try block
A block of code you attempt to execute while acknowledging that an exception might occur
catch block
Contains the actions you require when an instance of a class is destroyed
constructor
Contains the actions you require when an instance of a class is destroyed
destructor
Contains the actions you require when an instance of a class is destroyed
composition
Contains the actions you require when an instance of a class is destroyed
protected access specifier
Contains the actions you require when an instance of a class is destroyed
abstract
Contains the actions you require when an instance of a class is destroyed
libraries
Contains the actions you require when an instance of a class is destroyed
exceptions
Contains the actions you require when an instance of a class is destroyed
throw statement
Contains the actions you require when an instance of a class is destroyed
try block
Contains the actions you require when an instance of a class is destroyed
catch block
A segment of code that can handle an exception that might be thrown by the try block that precedes it
constructor
A segment of code that can handle an exception that might be thrown by the try block that precedes it
destructor
A segment of code that can handle an exception that might be thrown by the try block that precedes it
composition
A segment of code that can handle an exception that might be thrown by the try block that precedes it
protected access specifier
A segment of code that can handle an exception that might be thrown by the try block that precedes it
abstract
A segment of code that can handle an exception that might be thrown by the try block that precedes it
libraries
A segment of code that can handle an exception that might be thrown by the try block that precedes it
exceptions
A segment of code that can handle an exception that might be thrown by the try block that precedes it
throw statement
A segment of code that can handle an exception that might be thrown by the try block that precedes it
try block
A segment of code that can handle an exception that might be thrown by the try block that precedes it
catch block
Question
Discuss the general principle of exception handling in object-oriented programming.
Question
List three advantages of creating a useful, extendable superclass.
Question
Discuss exception handling.
Question
Describe the Object class.
Question
Describe the components of a try block.
Question
List the elements you would use to create a catch block.
Question
Explain constructors.
Question
Explain how to create your own throwable Exception .
Question
Explain inheritance.
Question
Explain composition.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/51
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 11: More Object Oriented Programming Concepts
1
The built-in Exception s in a programming language can cover every condition that might be an Exception in your applications.
False
2
You can create constructors for a class with or without parameters.
True
3
The most common way to declare a destructor explicitly is to use an identifier that consists of ____.

A) a colon followed by the class name
B) a period followed by the class name
C) a tilde followed by the class name
D) an exclamation mark followed by the class name
C
4
If a constructor requires arguments, it is a ____ constructor.

A) reliable
B) private
C) default
D) nondefault
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
5
A(n) ____ in a class diagram indicates public access.

A) minus sign
B) diamond
C) plus sign
D) exclamation point
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
6
By using standard component classes, programmers are assured that the GUI components in their programs have the same look and feel as those in other programs.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
7
The entire list of parent classes from which a child class is derived constitutes the ____ of the subclass.

A) children
B) ancestors
C) subordinates
D) derivatives
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
8
When using existing objects, you need to concentrate only on the interface to those objects, not on the internal instructions that make them work.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
9
A derived class always ____ case or instance of the more general base class.

A) has a
B) makes a
C) redefines a
D) is a
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
10
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.

A) Top
B) Object
C) Ultimate
D) Mega
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
11
It makes sense that a parent class object has access to its child's data and methods.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
12
An abstract class is one from which you can create any concrete objects and from which you can inherit.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
13
You cannot provide parameters to a destructor; it must have an empty parameter list.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
14
Any constructor you write must have the same name as the class it constructs, and it cannot have a return type.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
15
The relationship created with composition is called a(n) ____ relationship.

A) is-a
B) has-a
C) with-a
D) child
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
16
When properly used, inheritance always involves a ____ relationship.

A) specific-to-general
B) general-to-specific
C) specific-to-specific
D) general-to-general
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
17
A class that is used as a basis for inheritance is called a ____ class or a superclass.

A) base
B) bottom
C) platform
D) derived
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
18
In object-oriented terminology, "default constructor" means a constructor with a single standard parameter.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
19
In OOP languages, a default constructor is created automatically by the compiler for every class you write.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
20
A method's name and a list of argument types together are its ____.

A) signature
B) header
C) profile
D) interface
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
21
____ are stored collections of classes that serve related purposes

A) Libraries
B) Constructors
C) IDE
D) Destructors
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
22
Code that has already been tested and used in a variety of situations is said to be ____.

A) protected
B) private
C) overloaded
D) reliable
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
23
When using ____________________, you can develop new classes more quickly by extending classes that already exist and work.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
24
If an exception is thrown, it is passed to a block of code that can ____, which means to receive it in a block that can handle the problem.

A) catch the exception
B) raise the exception
C) hold the exception
D) try the exception
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
25
In traditional programming, probably the most often used error-handling outcome was to ____.

A) terminate the program in which the offending statement occurred
B) ignore the error
C) handle the error
D) ask the user for additional input
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
26
In object-oriented terminology, the generic name used for errors is ____.

A) bugs
B) undefined branches
C) interfaces
D) exceptions
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
27
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 ____________________.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
28
Classes that depend on field names from parent classes are said to be ____ because they are prone to errors.

A) robust
B) innovative
C) fragile
D) constructive
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
29
Programmers sometimes refer to a situation in which nothing goes wrong as the ____ case.

A) rainbow day
B) sunny day
C) cloudy day
D) pessimistic
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
30
The capability to inherit from more than one class is called ____ inheritance.

A) poly
B) multiple
C) branch
D) dual
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
31
When you create a segment of code in which something might go wrong, you place the code in a ____ block.

A) throw
B) hold
C) try
D) catch
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
32
____________________ is the mechanism by which a child class method is used by default when a parent class contains a method with the same signature.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
33
By using ____, you can use reasonable, easy-to-remember names for methods and concentrate on their purpose rather than on memorizing different method names.

A) inheritance
B) inference
C) polymorphism
D) relationships
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
34
Libraries, collections of classes that serve related purposes, are also called ____________________.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
35
You almost always code at least one catch block immediately following a(n) ____________________ block.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
36
In several languages, the visual development environment is known by the acronym ____.

A) IDE
B) XML
C) ODI
D) IPE
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
37
Object-oriented programs employ a more specific group of techniques for handling errors called ____.

A) exception raising
B) exception management
C) exception handling
D) garbage collection
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
38
When a data field within a class is ____, no outside class can use it-including a child class.

A) reliable
B) fragile
C) private
D) protected
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
39
Programmers use the phrase ____ to describe what happens when worthless or invalid input causes inaccurate or unrealistic results.

A) WIGO
B) GOGI
C) LIFO
D) GIGO
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
40
When you purchase or download a(n) ____ for an object-oriented programming language, it comes packaged with many predefined, built-in classes.

A) compiler
B) IDE
C) sunny day case
D) interpreter
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
41
Match between columns
Used when you want no outside classes to be able to use a data field, except classes that are children of the original class
constructor
Used when you want no outside classes to be able to use a data field, except classes that are children of the original class
destructor
Used when you want no outside classes to be able to use a data field, except classes that are children of the original class
composition
Used when you want no outside classes to be able to use a data field, except classes that are children of the original class
protected access specifier
Used when you want no outside classes to be able to use a data field, except classes that are children of the original class
abstract
Used when you want no outside classes to be able to use a data field, except classes that are children of the original class
libraries
Used when you want no outside classes to be able to use a data field, except classes that are children of the original class
exceptions
Used when you want no outside classes to be able to use a data field, except classes that are children of the original class
throw statement
Used when you want no outside classes to be able to use a data field, except classes that are children of the original class
try block
Used when you want no outside classes to be able to use a data field, except classes that are children of the original class
catch block
A class from which you cannot create any concrete objects, but from which you can inherit
constructor
A class from which you cannot create any concrete objects, but from which you can inherit
destructor
A class from which you cannot create any concrete objects, but from which you can inherit
composition
A class from which you cannot create any concrete objects, but from which you can inherit
protected access specifier
A class from which you cannot create any concrete objects, but from which you can inherit
abstract
A class from which you cannot create any concrete objects, but from which you can inherit
libraries
A class from which you cannot create any concrete objects, but from which you can inherit
exceptions
A class from which you cannot create any concrete objects, but from which you can inherit
throw statement
A class from which you cannot create any concrete objects, but from which you can inherit
try block
A class from which you cannot create any concrete objects, but from which you can inherit
catch block
A method that has the same name as a class and that establishes an object
constructor
A method that has the same name as a class and that establishes an object
destructor
A method that has the same name as a class and that establishes an object
composition
A method that has the same name as a class and that establishes an object
protected access specifier
A method that has the same name as a class and that establishes an object
abstract
A method that has the same name as a class and that establishes an object
libraries
A method that has the same name as a class and that establishes an object
exceptions
A method that has the same name as a class and that establishes an object
throw statement
A method that has the same name as a class and that establishes an object
try block
A method that has the same name as a class and that establishes an object
catch block
When a class contains objects of another class
constructor
When a class contains objects of another class
destructor
When a class contains objects of another class
composition
When a class contains objects of another class
protected access specifier
When a class contains objects of another class
abstract
When a class contains objects of another class
libraries
When a class contains objects of another class
exceptions
When a class contains objects of another class
throw statement
When a class contains objects of another class
try block
When a class contains objects of another class
catch block
Errors in object-oriented languages
constructor
Errors in object-oriented languages
destructor
Errors in object-oriented languages
composition
Errors in object-oriented languages
protected access specifier
Errors in object-oriented languages
abstract
Errors in object-oriented languages
libraries
Errors in object-oriented languages
exceptions
Errors in object-oriented languages
throw statement
Errors in object-oriented languages
try block
Errors in object-oriented languages
catch block
Sends an Exception object out of the current code block or method so it can be handled elsewhere
constructor
Sends an Exception object out of the current code block or method so it can be handled elsewhere
destructor
Sends an Exception object out of the current code block or method so it can be handled elsewhere
composition
Sends an Exception object out of the current code block or method so it can be handled elsewhere
protected access specifier
Sends an Exception object out of the current code block or method so it can be handled elsewhere
abstract
Sends an Exception object out of the current code block or method so it can be handled elsewhere
libraries
Sends an Exception object out of the current code block or method so it can be handled elsewhere
exceptions
Sends an Exception object out of the current code block or method so it can be handled elsewhere
throw statement
Sends an Exception object out of the current code block or method so it can be handled elsewhere
try block
Sends an Exception object out of the current code block or method so it can be handled elsewhere
catch block
Collections of classes that serve related purposes
constructor
Collections of classes that serve related purposes
destructor
Collections of classes that serve related purposes
composition
Collections of classes that serve related purposes
protected access specifier
Collections of classes that serve related purposes
abstract
Collections of classes that serve related purposes
libraries
Collections of classes that serve related purposes
exceptions
Collections of classes that serve related purposes
throw statement
Collections of classes that serve related purposes
try block
Collections of classes that serve related purposes
catch block
A block of code you attempt to execute while acknowledging that an exception might occur
constructor
A block of code you attempt to execute while acknowledging that an exception might occur
destructor
A block of code you attempt to execute while acknowledging that an exception might occur
composition
A block of code you attempt to execute while acknowledging that an exception might occur
protected access specifier
A block of code you attempt to execute while acknowledging that an exception might occur
abstract
A block of code you attempt to execute while acknowledging that an exception might occur
libraries
A block of code you attempt to execute while acknowledging that an exception might occur
exceptions
A block of code you attempt to execute while acknowledging that an exception might occur
throw statement
A block of code you attempt to execute while acknowledging that an exception might occur
try block
A block of code you attempt to execute while acknowledging that an exception might occur
catch block
Contains the actions you require when an instance of a class is destroyed
constructor
Contains the actions you require when an instance of a class is destroyed
destructor
Contains the actions you require when an instance of a class is destroyed
composition
Contains the actions you require when an instance of a class is destroyed
protected access specifier
Contains the actions you require when an instance of a class is destroyed
abstract
Contains the actions you require when an instance of a class is destroyed
libraries
Contains the actions you require when an instance of a class is destroyed
exceptions
Contains the actions you require when an instance of a class is destroyed
throw statement
Contains the actions you require when an instance of a class is destroyed
try block
Contains the actions you require when an instance of a class is destroyed
catch block
A segment of code that can handle an exception that might be thrown by the try block that precedes it
constructor
A segment of code that can handle an exception that might be thrown by the try block that precedes it
destructor
A segment of code that can handle an exception that might be thrown by the try block that precedes it
composition
A segment of code that can handle an exception that might be thrown by the try block that precedes it
protected access specifier
A segment of code that can handle an exception that might be thrown by the try block that precedes it
abstract
A segment of code that can handle an exception that might be thrown by the try block that precedes it
libraries
A segment of code that can handle an exception that might be thrown by the try block that precedes it
exceptions
A segment of code that can handle an exception that might be thrown by the try block that precedes it
throw statement
A segment of code that can handle an exception that might be thrown by the try block that precedes it
try block
A segment of code that can handle an exception that might be thrown by the try block that precedes it
catch block
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
42
Discuss the general principle of exception handling in object-oriented programming.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
43
List three advantages of creating a useful, extendable superclass.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
44
Discuss exception handling.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
45
Describe the Object class.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
46
Describe the components of a try block.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
47
List the elements you would use to create a catch block.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
48
Explain constructors.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
49
Explain how to create your own throwable Exception .
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
50
Explain inheritance.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
51
Explain composition.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 51 flashcards in this deck.