Inheritance
Abstract Classes
Interfaces
Polymorphism
Error Handling in Java
Practice
Assignment
Back end Track
Under construction
<aside>
🚧
This page is currently under construction. Please check back later.
</aside>
Implementation plan:
- What is an abstract class
abstract keyword on class and method level
- Abstract methods — declared without implementation
- Concrete methods in abstract classes — providing shared behavior
- Cannot instantiate abstract classes
- Subclasses must implement all abstract methods (or also be abstract)
- When to use abstract classes — shared state + partial implementation
- Exercise: refactor the previous hierarchy to use an abstract base class
The HackYourFuture curriculum is licensed under CC BY-NC-SA 4.0

*https://hackyourfuture.net/*
Found a mistake or have a suggestion? Let us know in the feedback form.