5 Questions
Which type of inheritance is not supported in Java?
Multiple inheritance
What is the advantage of inheritance?
All of the above
Which access specifier allows members of a class to be used within its own class and subclass present in another package?
Protected
Which access specifier allows members of a class to be accessible everywhere, including other packages?
Public
What is the default access specifier for members of a class?
Default or friendly
Test your knowledge on inheritance in computer programming with this quiz for Class XII students. Learn about different types of inheritance and the advantages it brings to code reusability.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free