Matching
Match each term with a statement below.
Premises:
Used when you want no outside classes to be able to use a data field, except classes that are children of the original class
A class from which you cannot create any concrete objects, but from which you can inherit
A method that has the same name as a class and that establishes an object
When a class contains objects of another class
Errors in object-oriented languages
Sends an Exception object out of the current code block or method so it can be handled elsewhere
Collections of classes that serve related purposes
A block of code you attempt to execute while acknowledging that an exception might occur
Contains the actions you require when an instance of a class is destroyed
A segment of code that can handle an exception that might be thrown by the try block that precedes it
Responses:
destructor
catch block
protected access specifier
abstract
throw statement
libraries
composition
try block
constructor
exceptions
Correct Answer:
Premises:
Responses:
Used when you want no outside classes to be able to use a data field, except classes that are children of the original class
A class from which you cannot create any concrete objects, but from which you can inherit
A method that has the same name as a class and that establishes an object
When a class contains objects of another class
Errors in object-oriented languages
Sends an Exception object out of the current code block or method so it can be handled elsewhere
Collections of classes that serve related purposes
A block of code you attempt to execute while acknowledging that an exception might occur
Contains the actions you require when an instance of a class is destroyed
A segment of code that can handle an exception that might be thrown by the try block that precedes it
Premises:
Used when you want no outside classes to be able to use a data field, except classes that are children of the original class
A class from which you cannot create any concrete objects, but from which you can inherit
A method that has the same name as a class and that establishes an object
When a class contains objects of another class
Errors in object-oriented languages
Sends an Exception object out of the current code block or method so it can be handled elsewhere
Collections of classes that serve related purposes
A block of code you attempt to execute while acknowledging that an exception might occur
Contains the actions you require when an instance of a class is destroyed
A segment of code that can handle an exception that might be thrown by the try block that precedes it
Responses:
Related Questions
Q8: Programmers sometimes refer to a situation in
Q17: In object-oriented terminology,"default constructor" means a constructor
Q22: Programmers use the phrase _ to describe
Q31: A(n)_ in a class diagram indicates public
Q38: List three advantages of creating a useful,extendable
Q39: When properly used,inheritance always involves a _
Q50: When using existing objects,you need to concentrate
Q51: Classes that depend on field names from
Q53: An instance of a class becomes eligible
Q58: In object-oriented terminology,the generic name used for