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 interface — a contract
- Defining an interface with method signatures
implements keyword
- A class can implement multiple interfaces
- Default methods in interfaces (Java 8+)
- Static methods in interfaces
- Interfaces vs abstract classes — when to use which
- Interface segregation — keeping interfaces small and focused
- Real-world examples:
Comparable, Iterable
- Exercise: define an interface and implement it in multiple classes
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.