Inheritance in Java: Definition, Example & Syntax


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

question 1 of 3

The method of the parent class can be re-used and modified in a subclass inherited from the parent class. What is the term used to reference this behavior?

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. Which variable CANNOT be used in the parent class of Benefit?

2. Which of the following correctly creates a subclass, or child class, from the main Employee class?

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

This quiz will ask you a handful of questions about the concept of inheritance in the Java programming language. To pass the quiz, you'll need to understand parent and subclasses and recognize correct lines of code.

Quiz & Worksheet Goals

The quiz will challenge you to:

  • Identify the term that references the inheritance of a parent class
  • Select a variable that can't be used in an example line of code
  • Recognize a line of code that correctly makes a subclass
  • Give another name for a parent class
  • Understand the relationship between a subclass and parent class

Skills Practiced

You'll exercise several skills, including:

  • Knowledge application - use what you know about inheritance to identify lines of code that correctly demonstrate the concept
  • Information recall - access the knowledge you've gained regarding subclasses and parent classes
  • Making connections - determine what a parent class is also known as

Additional Learning

Inheritance in Java: Definition, Example & Syntax is a related lesson that helps you learn more about this Java concept. Reviewing this lesson can help you:

  • Understand the purpose of inheritance in object-oriented programming
  • Know what a super keyword is
  • Analyze examples of Java code that demonstrate inheritance