If we want to make Athlete a subclass of Robot, what keyword do we use below?
public class Athlete ____?____Robot
What Do You Remember About Inheritance
Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Mrs. Cossa
Used 4+ times
FREE Resource
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If we want to make Athlete a subclass of Robot, what keyword do we use below?
public class Athlete ____?____Robot
extends
isa
implements
subclass
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If Athlete extends Robot, which is NOT true?
Athlete inherits from Robot
Robot inherits from Athlete
Athlete is the subclass
Robot is the superclass
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
We have 3 classes: Robot with a subclass Athlete with a subclass Climber. All objects need to be able to "move()". Where should this method be defined?
In all 3 classes
Climber
Athlete
Robot
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
We have 3 classes: Robot with a subclass Athlete with a subclass Climber. Climber objects need to be able to "climb()". Where should this method be defined?
In all 3 classes
Climber
Athlete
Robot
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
We have 3 classes: Robot with a subclass Athlete with a subclass Climber. Athlete and Climber objects need to be able to "turnRight()". Where should this method be defined?
In all 3 classes
Climber
Athlete
Robot
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Constructors are not inherited. However, subclasses can still call constructors from the superclass with what keyword?
extends
new
const
super
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A Climber class has a method climbUpRight(). Although the subclass, HillClimber, inherits this method it redefines it with a different defintiion. This is called?
overriding
overloading
a waste of time
inheritance
10 questions
Java Inheritance Quiz
Quiz
•
11th Grade
10 questions
Inheritance Quiz
Quiz
•
2nd Grade - University
11 questions
Object Oriented Programming
Quiz
•
12th Grade
10 questions
OOP2 Understanding Inheritance in OOP
Quiz
•
11th Grade
9 questions
South African Language
Quiz
•
12th Grade
8 questions
Object Oriented Programming Concepts
Quiz
•
12th Grade
10 questions
Exploring Object Oriented Programming Concepts
Quiz
•
11th Grade
12 questions
Java Quiz 1
Quiz
•
9th Grade
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
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
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