ATHENA
Illustrated avatar of Alex MorganAlex MorganComputer Science
All resources
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%
Open book

Contents

Classes in Pythonp. 74Properties and Privacyp. 92Inheritance and super()p. 105Duck Typing and Polymorphismp. 118

Key concepts

Polymorphism

One interface, many forms: code written against a general type works with every specialised type that honours it.

Also in 4 other resources
Inheritance

A class derives state and behaviour from a parent class and may extend or override it.

Also in 3 other resources
Encapsulation

Bundling data with the methods that protect it, exposing only a deliberate public surface.

Also in 2 other resources
Classes & Objects

Classes describe a blueprint; objects are the living instances created from it.

Also in 5 other resources
Interfaces & Protocols

Contracts that describe required behaviour without dictating implementation.

Also in 2 other resources

Used in courses

Python IICS 230Object-Oriented ProgrammingCS 210