🎴 Flashcard Mode
Object-Oriented Programming and Windows Workflow Fundamentals
Card1 / 20
Mastered0
Review0
QuestionClick to flip
If a catch statement is written to catch exception objects of a base class type, it can also catch all _____ derived from that base class
AnswerClick to flip back
A
Exceptions for objects
💡 Explanation:
In exception handling, catching a base class type will catch all derived class exceptions due to polymorphism. This is because a derived class object 'is-a' base class object, so the base class catch block can handle it. This enables handling groups of related exceptions with a single handler.