Daniel HailePython for Intermediate Learners{ }CS 230
TEXTBOOK · 2024
Python for Intermediate Learners
Daniel Haile · 356 pages
Moves beyond scripting into classes, dunder methods, protocols and idiomatic object-oriented Python.
58%
Contents
Classes in Pythonp. 74Properties and Privacyp. 92Inheritance and super()p. 105Duck Typing and Polymorphismp. 118Key concepts
Polymorphism
One interface, many forms: code written against a general type works with every specialised type that honours it.
Also in 4 other resourcesInheritance
A class derives state and behaviour from a parent class and may extend or override it.
Also in 3 other resourcesEncapsulation
Bundling data with the methods that protect it, exposing only a deliberate public surface.
Also in 2 other resourcesClasses & Objects
Classes describe a blueprint; objects are the living instances created from it.
Also in 5 other resourcesInterfaces & Protocols
Contracts that describe required behaviour without dictating implementation.
Also in 2 other resources