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
5 questions
Java Quiz
Quiz
•
11th Grade
8 questions
CAI710 - Inheritance
Quiz
•
12th Grade
12 questions
49W Exam 2 PLTW
Quiz
•
9th - 12th Grade
10 questions
Exploring Object Oriented Programming Concepts
Quiz
•
11th Grade
6 questions
Review of inheritance & polymorphism
Quiz
•
12th Grade
10 questions
VEXcode VR Blocks Unit 9
Quiz
•
11th - 12th Grade
10 questions
OOP2 Understanding Inheritance in OOP
Quiz
•
11th Grade
10 questions
Object-Oriented Programming (OOP) in Python 3 Quiz
Quiz
•
12th Grade
15 questions
Multiplication Facts
Quiz
•
4th Grade
20 questions
Math Review - Grade 6
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
5 questions
capitalization in sentences
Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions
Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines
Quiz
•
Professional Development
12 questions
Dividing Fractions
Quiz
•
6th Grade
25 questions
Spanish preterite verbs (irregular/changed)
Quiz
•
9th - 10th Grade
10 questions
Identify Slope and y-intercept (from equation)
Quiz
•
8th - 9th Grade
10 questions
Juneteenth: History and Significance
Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1
Quiz
•
9th - 12th Grade
26 questions
June 19th
Quiz
•
4th - 9th Grade
20 questions
Distance, Midpoint, and Slope
Quiz
•
10th Grade
20 questions
Figurative Language Review
Quiz
•
10th Grade
27 questions
STAAR English 1 Review
Quiz
•
9th Grade