CHAPTER 12

Inheritance and Polymorphism

 

Objectives

  • To define a subclass from a superclass through inheritance (§12.2).
  • To override methods in a subclass (§12.3).
  • To explore the object class and its methods (§12.4).
  • To understand polymorphism and dynamic binding (§12.5).
  • To determine whether an object is an instance of a class by using the isinstance function (§12.6).
  • To design a GUI class for displaying a reusable clock (§12.7).
  • To discover relationships among classes (§12.8).
  • To design the Course class (§12.9).
  • To design the Stack class (§12.10).
  • To design the FigureCanvas class (§12.11).

12.1 Introduction

images Key Point

Object-oriented ...

Get Introduction to Python Programming and Data Structures, 3rd Edition by Pearson now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.