1. Which OOP features where one class inherits all the properties and behaviors of another class?
Java Inheritance

Quiz
•
Computers
•
11th Grade
•
Easy
Richard Groeneveld
Used 5+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Polymorphism
Inheritance
Abstraction
Encapsulation
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2. What do you call a class that inherits the properties of another class?
superclass
subsetclass
subclass
relativeclass
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
3. Which of these keywords must be used to inherit a class?
super
this
void
extends
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is method overriding in Java?
Changing the value of a method's parameters in the subclass.
Providing a specific implementation of a method that is already provided by its superclass.
Removing a method from the superclass in the subclass.
Calling a method from the superclass in the subclass.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct way to call a superclass method from a subclass in Java?
super.methodName();
this.methodName();
superclass.methodName();
methodName();
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a rule for method overriding in Java?
The argument list must exactly match that of the overridden method.
The return type must be the same or a subtype of the return type declared in the original overridden method.
A method declared final cannot be overridden.
The overriding method must always be static if the overridden method is static.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if the `@Override` annotation is used with a method that does not override a superclass method?
The program will compile without any errors.
The program will throw a runtime exception.
The compiler will generate an error.
The method will be ignored during execution.
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Introduction to Java

Quiz
•
8th - 12th Grade
10 questions
Quiz Inheritance

Quiz
•
11th Grade
15 questions
Object Oriented Programming MCQs

Quiz
•
University
10 questions
OOP2 Understanding Inheritance in OOP

Quiz
•
11th Grade
11 questions
Subclass/Subclass

Quiz
•
11th Grade
10 questions
Java Quiz 1

Quiz
•
University
6 questions
Review of inheritance & polymorphism

Quiz
•
12th Grade
6 questions
Chapter 15 Quiz

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University