chapter 3: When Objects Are Alike

Basic inheritance 467 Multiple inheritance 473 Polymorphism 483 Abstract base classes 486 Case study 490 Exercises 503 Summary

3.1 Basic inheritance

3.1.1 Linux

Automatic Install Script

$ sudo wget -qO- https://get.docker.com/ | sh

remove hell-world

$ sudo docker rm `sudo docker ps -aq`
$ sudo docker rmi hello-world

.

3.2 Multiple inheritance

3.3 Polymorphism

3.4 Abstract base classes

3.5 Case study

3.6 Exercises

3.7 Summary