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
Q22: Programmers use the phrase _ to describe
Q24: Object-oriented programs employ a more specific group
Q28: When a data field within a class
Q30: When you purchase or download a(n)_ for
Q40: In several languages,the visual development environment is
Q44: Describe the components of a try block.
Q48: Discuss exception handling.
Q51: List three advantages of creating a useful,extendable
Q54: Discuss the general principle of exception handling
Q60: Describe the Object class.
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents