Overriding Methods in Java: Definition & Example


Choose an answer and hit 'next'. You will receive your score and answers at the end.

question 1 of 3

When overriding a method, where is the new method defined?

Create Your Account To Take This Quiz

As a member, you'll also get unlimited access to over 79,000 lessons in math, English, science, history, and more. Plus, get practice tests, quizzes, and personalized coaching to help you succeed.

Try it risk-free
Try it risk-free for 30 days. Cancel anytime
Already registered? Log in here for access

1. Examine the following code that defines a class for Bonds. Which of the following is the correct way to override the method calcFees?

2. If you have overridden a method but still want to use the parent class method, what keyword is used?

Create your account to access this entire worksheet
A Premium account gives you access to all lesson, practice exams, quizzes & worksheets
Access to all video lessons
Quizzes, practice exams & worksheets
Certificate of Completion
Access to instructors
Create an account to get started Create Account

About This Quiz & Worksheet

Use these study materials to grasp how well you comprehend the definition and examples of overriding methods in Java. Topics on the interactive quiz include where the new method is defined after overriding and the correct way to override the method in a given example.

Quiz & Worksheet Goals

Additional quiz topics are as follows:

  • The appropriate keyword to use in a given scenario
  • The name of a method being overriden in a code example
  • The overall concept that overriding methods is a part of

Skills Practiced

  • Reading comprehension - ensure that you draw the most important information from the related lesson on overriding methods in Java
  • Interpreting information - verify that you can read information regarding the overall concept that includes overriding methods and interpret it correctly
  • Information recall - access the knowledge you've gained regarding where the new method would be defined after overriding

Additional Learning

For more on this particular Java concept, read or watch the lesson named Overriding Methods in Java: Definition & Example. The lesson will adhere to the following points of study:

  • Variables and methods in the parent class
  • An example of a specific Java class
  • Some rules/guidelines for overriding
  • A full block of code
  • The output of an override