JavaRush
AI Academy
new
Promotion
Learning
Courses
Tasks
Quizzes
Games
Help
Schedule of nudges
Internship
Community
Users
Forum
Chat
Articles
Activities
Reviews
Subscriptions
Light theme

Lectures

  • Reviews
  • About us
  • CS50
Start
Start learning
Start learning
  • My progress
  • Courses
  • Quest map
  • Lectures
  • The concept of inheritance and the extends syntax

    JAVA 25 SELF
    17 level,0 lecture
    In this lecture, we’ll figure out what inheritance in Java is, how it helps you avoid code duplication, and how to declare hierarchies using the extends keyword. We’ll look at what exactly a subclass inherits, what limitations exist (single inheritance, private members, constructors), work through a practical example with animals, nuances with constructors, and common mistakes.
    Open
  • Method overriding (override), @Override annotation

    JAVA 25 SELF
    17 level,1 lecture
    In this lecture we break down method overriding in Java: how and why a subclass replaces its parent’s behavior, what benefits the @Override annotation gives, how polymorphism works when calling through a base-type reference, as well as the key rules (signature, access modifiers, exceptions, covariance) and restrictions ( static, final, private). We wrap up with hands-on practice on a mini‑project “Zoo” and a review of common mistakes.
    Open
  • Using super: calling the base class constructor and methods

    JAVA 25 SELF
    17 level,2 lecture
    We break down the super keyword in Java: how to call base-class methods and constructors, how to access shadowed fields of the parent, when and why to extend behaviour via super and super(...), as well as limitations (cannot be used in static methods, no access to private) and common pitfalls. Lots of practical examples on the Animal/ Cat/ Dog and Vehicle/ Car hierarchies.
    Open
  • Creating class hierarchies: real-world examples

    JAVA 25 SELF
    17 level,3 lecture
    We will learn to design and implement class hierarchies in Java: how to identify the general and the specific, build an inheritance tree, where the is-a relationship is appropriate, and when it is better to use composition ( has-a). We will look at real-world examples (animals, geometry, transportation, users), architectural nuances, and common design mistakes.
    Open
  • Problems and limitations of inheritance

    JAVA 25 SELF
    17 level,4 lecture
    In this lecture, we discuss the boundaries of the inheritance model in Java: single class inheritance, the absence of constructor inheritance, and the inaccessibility of private members. We will examine “fragile” hierarchies and the effect of “breaking” inheritance, present alternatives—composition ( has-a), delegation, and interfaces—as well as criteria for “when you really need extends.” Along the way, we will note calling the parent constructor via super(...) and common design mistakes.
    Open
Courses
  • Java Course
  • Python Course
  • Development with Claude Code
  • All 16 courses
University
  • Java FullStack
  • Python FullStack
  • AI Native Developer
  • Web FullStack
Community
  • Articles
  • Forum
  • Help with Tasks
Company
  • About us
  • Contacts
  • Reviews
  • Pricing
  • Questions and answers
JavaRush JavaRush: online courses in Java and other programming languages, where you learn by solving tasks. We started in 2012 with a Java course, and today there are 16 courses: Java and Spring, Python, web development, SQL, Go, C#, C++, Kotlin, Swift, Docker and AI development. More than 10,000 tasks with instant checks, and the first level of any course is free. Learn on your own or with a mentor at JavaRush University.
Follow us
Язык интерфейса
Русский
English
Українська
"Programmers are not born" © 2026 JavaRush Terms of Use and Privacy policy
MastercardVisa
"Programmers are not born" © 2026 JavaRush Terms of Use and Privacy policy