Week 2

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:

  1. What is inheritance — "is-a" relationship
  2. extends keyword
  3. Superclass and subclass
  4. What is inherited (fields, methods) and what is not (constructors)
  5. The super keyword — calling parent constructor
  6. super for calling parent methods
  7. Method overriding — redefining behavior in subclass
  8. @Override annotation — what it does and why to use it
  9. Method overloading vs overriding — clarify the difference
  10. The Object class — root of all Java classes

The HackYourFuture curriculum is licensed under CC BY-NC-SA 4.0

CC BY-NC-SA 4.0 Icons

*https://hackyourfuture.net/*

Found a mistake or have a suggestion? Let us know in the feedback form.