In Java, what is a Base Class?

PYQ RPSC Programmer 2024

In Java, what is a Base Class?

  1. A.

    A class that is used as a template to create other classes and can be instantiated directly.

  2. B.

    A class that is used as a foundation for other classes to inherit properties and methods.

  3. C.

    A class that contains only static methods and variables.

  4. D.

    A class that cannot be inherited by other classes and is only used for creating objects.

  5. E.

    Question not attempted

Attempted by 420 students.

Sign up free to check your answer

Sign up free

Explore the full course: Rpsc Programmer

Loading lesson…