Skip to content

Advanced Java · Week 4

Inheritance

Step 1 of 8

Java 2 Guided Tutorials - Week 4: Inheritance

What You'll Learn

Welcome to Week 4 of Java 2! This week, we'll explore inheritance, a fundamental concept in object-oriented programming. Inheritance allows us to create new classes based on existing classes, promoting code reuse and establishing a hierarchy among classes.

Lesson Overview:

  • Understanding Inheritance
  • Types of Inheritance in Java
  • The 'extends' Keyword
  • Method Overriding
  • The 'super' Keyword
  • Quiz to test your knowledge
  • Weekly project to apply what you've learned

By the end of this week, you'll have a solid understanding of inheritance and how to use it effectively in your Java programs. Let's get started!

Quick check

  1. 1. What keyword is used to inherit from a class in Java?

  2. 2. What is the purpose of the 'super' keyword in Java?

  3. 3. Which of the following is true about method overriding?