Before session 6
Abstract classes. Interfaces.
Objectives:
After completing the session, a student 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
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