Every class directly or indirectly extends the______class.

  1. System

  2. Object

  3. Drawing

  4. Console


Correct Option: B

AI Explanation

To answer this question, you need to have a basic understanding of object-oriented programming.

Option A) System - This option is incorrect because the System class is not the superclass of all classes in object-oriented programming.

Option B) Object - This option is correct because the Object class is the superclass of all classes in object-oriented programming. In Java, for example, every class directly or indirectly extends the Object class.

Option C) Drawing - This option is incorrect because the Drawing class is not a commonly used superclass in object-oriented programming.

Option D) Console - This option is incorrect because the Console class is not the superclass of all classes in object-oriented programming.

The correct answer is Option B) Object. This option is correct because the Object class serves as the superclass of all classes in object-oriented programming.

Find more quizzes: