Week 4: Abstract classes, interfaces, private classes, callbacks, iterators

Contracts between classes and ways to hide them.

Key points, notes and past questions

OOP: Inheritance, Polymorphism, Interfaces and Inner Classes

Which method runs and what compiles: the base for most other topics.

Notes23 past questions in this topic

23 past questions are linked to this week's topics. A topic taught over several weeks appears on each of them.

Week 3: Inheritance, polymorphism, class hierarchy, modifiersWeek 5: Generic programming, subtyping, runtime behaviourAll Java topics and weeks