When does a method override occur?
U9 Video 9.3

Interactive Video
•
Computers
•
11th Grade
•
Easy
Lauren Wheelwright
Used 2+ times
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Anytime we use the @Override on the line before the method in the subclass.
Anytime we use the @Override on the line before the method in the superclass.
Anytime we use the @Override on the line before the method in the subclass and the method signatures match.
Anytime a subclass method signature matches that of the superclass
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why do we use the @Override in our code?
When we use it, the compiler checks that we are actually overriding the method we intended to.
It is required to override a method.
It tells Java to skip that method in the code.
It tells Java to exit out of the code at this point.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why might we want to override a superclass method? Select the best option.
We override methods so that we can see how a method is working within the class.
We override methods because superclasses cannot correctly define most subclass behaviors.
We override a method because a subclass needs to define a behavior in a different way than the superclass.
We override methods to make Java run more efficiently.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How does Java determine the order to execute methods between superclasses and subclasses?
Java first looks in a subclass for a method signature. If it is found there, it executes that method. Otherwise it checks the superclass methods
Java first looks in a superclass for a method signature. If it is found there, it executes that method. Otherwise it checks the subclass methods.
Java first looks in a superclass for a method signature. If it is found there, it executes that method after checking the subclass for an override.
Java starts in the Object class and works its way down the hierarchy until it finds the correct method signature.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
From a design perspective, what goes in the subclass?
Modified/Overridden methods
Additional instance variables specific to the subclass
Additional methods specific to the subclass
All of these options
Similar Resources on Wayground
6 questions
Java 11 Programming for Beginners 3.3: Inheritance — The Non-Taxable Kind

Interactive video
•
University
2 questions
Complete Java SE 8 Developer Bootcamp - Inheritance: Part 2

Interactive video
•
University
2 questions
Learn Java from Scratch - A Beginner's Guide - Step 09 - Inheritance and Overriding with toString() Method

Interactive video
•
University
8 questions
Learn Java from Scratch - A Beginner's Guide - Step 12 - Java Inheritance - Puzzles - Multiple Inheritance, Reference Va

Interactive video
•
University
3 questions
Java Programming for Complete Beginners - Java 16 - Step 09 - Inheritance and Overriding - with toString() Method

Interactive video
•
University
2 questions
Java Programming for Complete Beginners - Java 16 - Step 11 - Java Inheritance - Default Constructors and super() Method

Interactive video
•
University
2 questions
Core Java Programming Course- Method Overriding

Interactive video
•
University
8 questions
Core Java Programming Course- "Super" Keyword

Interactive video
•
University
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade