Chapter 6
Interfaces. Abstract classes
Objectives:
After completing the chapter, you can:
- give explanation to the terms: abstract class, interface;
- explain similarities and differences among concrete classes, abstract classes, and interfaces;
- design and use abstract classes;
- specify common behavior for objects using interfaces;
- create classes that implement interfaces;
- use Java's build-in Comparable interface;
- write programs that are easily extensible and modifiable by applying polymorphism in program design.
Topics
- 6.1 Abstract methods
- 6.2 Interfaces
- 6.3 Some Java interfaces
- 6.4 Abstract classes
- 6.5 Which one?
- 6.6 Tasks
NB! Watch the video in youtube if you need the subtitles!
Alternative materials
- in English:
- H. Schildt. Java - The Complete Reference: Chapter: 8, 9
- B. Kjell. Introduction to Computer Science using Java. Chapter 81
- in Estonian: here
- in Russian: Г. Шилдт. Java 8. Полное руководство: Chapter: 8, 9