Inheritance + java
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
Vivek Kumar
Used 15+ times
FREE Resource
Enhance your content in a minute
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Inheritance is used when the relationship between two classes: _______ relationship.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A class that is inherited is called a ______ .
superclass
Subclass
subsetclass
Relativeclass
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does polymorphism mean?
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which Java statement represents inheritance?
class body inherit Car
class body super Car
class body extends Car
class body override Car
5.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which of the following is/are true about inheritance in Java?
I. A subclass inherits all the methods and variables of the superclass.
II. A subclass can override the methods of its superclass
III. A subclass has access to the private instance variables of the superclass.
I only
II only
III only
I and II only
I and III only
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
super keyword is used to access
only subclass methods
parent class variables and methods
subclass variables and methods
only parent class methods
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
A class member declared protected becomes a _______member of subclass.
public
private
protected
default
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
13 questions
CIS1103 Week 9_10 CLO3 Part 3
Quiz
•
University
10 questions
2025 python class first quiz
Quiz
•
9th Grade - University
11 questions
Determining System Requirements
Quiz
•
University
10 questions
Planning and Implementation of Information Security
Quiz
•
University
10 questions
CC 105 - Quiz 2 FINAL TERM
Quiz
•
University
10 questions
T02: Python - The Basics
Quiz
•
University
10 questions
INTRODUCCION A LA PROGRAMACION
Quiz
•
6th Grade - University
10 questions
Hyrje në SO
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
