liveBook · Manning

Method

A method is a callable operation associated with an object or type and invoked through that association.

How 20 Manning books explain it

Python Workout: 50 ten-minute exercises

A function associated with a class or object that defines an operation callable in the context of that class or object.

How it is used
Organizes behavior with the data it operates on, giving callers a domain-specific object interface.
How deep it goes
Explains invocation, self, initialization, class lookup, inheritance, overriding, and super() through runnable examples and exercises.
Examples
Uses score averaging, ice-cream scoops, envelopes, phones, bread nutrition, and zoo animals to demonstrate methods.
What you can do after
Builds Python classes with instance methods, initialization, inherited behavior, overrides, and parent-method calls.

Read how Python Workout: 50 ten-minute exercises explains method →

Get Programming: Learn to code with Python

A method is a function defined as part of an object type that can operate on the object instance through its parameters.

How it is used
Defines object operations that change or inspect an instance and help organize behavior in larger programs.
How deep it goes
Explains method definitions, self, attribute access, instance calls, and equivalent explicit class-name calls.
Examples
Demonstrates Circle radius methods and Stack operations on pancake strings and Circle objects.
What you can do after
Build it from scratch: define methods for object types, call them on instances, and test circle, rectangle, or queue operations.

Read how Get Programming: Learn to code with Python explains method →

A Pythonic Adventure: From Python basics to a working web app

A method is a function associated with an object and invoked through that object.

How it is used
Uses methods to read menu text through a file object.
How deep it goes
Defines method syntax and return values through read(), while deferring a fuller discussion of objects.
Examples
Demonstrates f.read() on drinks.txt and asks learners to reproduce the file-reading program.
What you can do after
Apply Python's read() method to retrieve and print a file's contents.

Read how A Pythonic Adventure: From Python basics to a working web app explains method →

Learn PowerShell in a Month of Lunches: Fourth Edition, Covers Windows, Linux, and macOS

A method is a callable operation associated with an object that can direct the object to perform an action.

How it is used
Uses methods to inspect and manipulate PowerShell objects while keeping routine administration focused on cmdlets.
How deep it goes
Explains discovery, invocation syntax, pipeline use, collection behavior, and remoting limitations, while deferring most direct .NET programming.
Examples
Demonstrates process termination, file deletion, string conversion and trimming, date arithmetic, and method discovery through Get-Member.
What you can do after
Apply it via Get-Member and PowerShell syntax to discover methods, invoke them on objects, and choose simpler cmdlets when available.

Read how Learn PowerShell in a Month of Lunches: Fourth Edition, Covers Windows, Linux, and macOS explains method →

Python Workout, Second Edition

A method is a function associated with an object or class and invoked through that association.

How it is used
Organizes behavior with the objects or classes whose data and domain operations it represents.
How deep it goes
Explains definition, invocation, self, attributes, composition, and inheritance, without descending into method-dispatch internals.
Examples
Uses score averaging, Shelf operations, Scoop initialization, string uppercasing, and inherited x2 and x3 methods.
What you can do after
Build it from scratch by defining classes with methods, storing instance data, and invoking behavior through objects.

Read how Python Workout, Second Edition explains method →

Python How-To

A method is a function defined as an attribute of a class and intended to operate on instances or the class itself.

How it is used
Places data-processing behavior in custom classes so application data models can serve specific needs.
How deep it goes
Explains instance-method calls through self and method selection, then illustrates attribute initialization and special-method behavior.
Examples
Uses task completion and tagging, string representations, an enumeration’s display, and a tuple-to-instance challenge.
What you can do after
Build it from scratch: choose and define instance methods that operate on existing instance attributes, and recognize when a static method fits better.

Read how Python How-To explains method →

Go in Practice, Second Edition

A method is a function associated with a type and receiving a value of that type as its receiver.

How it is used
Attaches behavior to a type so functions can access its fields and, with a pointer receiver, change its data.
How deep it goes
Works through value and pointer receivers and a missing-method compile error, without examining runtime method dispatch.
Examples
Demonstrates animal sounds, a pointer-receiver name change, and an interface assignment rejected for a missing method.
What you can do after
Build it from scratch using receiver methods to read or change struct data and satisfy an interface.

Read how Go in Practice, Second Edition explains method →

Practices of the Python Pro

A method is a function associated with a class or object and typically invoked through that association.

How it is used
Uses methods to group related behavior with object data and separate responsibilities in Python programs.
How deep it goes
Explains method placement, self, instance state, __init__, and internal helpers through short Python examples.
Examples
Demonstrates methods with a Rock, Paper, Scissors simulator and a Greeter class exercise.
What you can do after
Build it from scratch by moving related functions into classes, using self for state, and exposing a focused operation.

Read how Practices of the Python Pro explains method →

Julia as a Second Language

A method is a function implementation associated with a particular argument-type signature and selected when a call matches that signature.

How it is used
Uses methods to give one Julia function different behavior for different combinations of warrior types.
How deep it goes
Works through definitions, inspection, missing-method errors, and runtime selection; sketches compilation while deferring compiler theory.
Examples
Shows typed archer-and-knight attacks, REPL method listings and errors, and a battle function accepting abstract warrior arguments.
What you can do after
Build it from scratch by adding typed methods to a Julia function and checking which argument combinations it supports.

Read how Julia as a Second Language explains method →

Learn Rust in a Month of Lunches

A method is a function associated with a type that is invoked through an instance or type and may receive the instance through self, &self, or &mut self.

How it is used
Attaches callable behavior to structs and enums and distinguishes instance calls from type-level associated functions.
How deep it goes
Explains impl blocks, three self forms, call syntax, and dot-operator dereferencing; defers special reasons to call self-taking methods with ::.
Examples
Uses an Animal impl block with checking and changing methods, plus a String method called through a double reference.
What you can do after
Build it from scratch: add methods to a struct or enum and choose &self or &mut self according to whether it changes.

Read how Learn Rust in a Month of Lunches explains method →

The Quick Python Book, Fourth Edition

A method is a function associated with a class or object and invoked in the context of that class or object.

How it is used
Defines behavior on classes and uses instance calls to work with object data.
How deep it goes
Explains definitions, implicit instance binding, class-based calls, parameters, and method varieties without descending into implementation internals.
Examples
Uses a Circle area calculation, an inherited Shape move call, and string method calls.
What you can do after
Build it from scratch by defining an instance method and calling it through an object.

Read how The Quick Python Book, Fourth Edition explains method →

100 Go Mistakes and How to Avoid Them

A method is a Go function associated with a receiver type and invoked on a value or pointer of that type.

How it is used
Guides receiver selection and predicts deferred method behavior.
How deep it goes
Works through receiver copying and deferred evaluation, but defers detailed pointer-versus-value performance analysis.
Examples
Contrasts balance-changing methods and deferred print calls that observe different field values.
What you can do after
Diagnose/debug with it by choosing receivers for mutation and predicting what deferred method calls will observe.

Read how 100 Go Mistakes and How to Avoid Them explains method →

Essential TypeScript 5, Third Edition

A method is an object property whose value is a function and which can be invoked as part of the object.

How it is used
Defines behavior on JavaScript objects and specifies callable members in TypeScript object shapes.
How deep it goes
Works through definition, invocation-dependent `this`, and optional shape signatures, including an unchecked-call failure and its guard.
Examples
Uses a price-reporting object method, a detached greeting function, and products with an optional feature-checking method.
What you can do after
Build it from scratch by defining object methods and shape signatures, then guard optional methods before calling them.

Read how Essential TypeScript 5, Third Edition explains method →

Pro Angular 16

A method is a function defined as part of a class or object and invoked through that class or object.

How it is used
Encapsulates class behavior, handles Angular template events, and processes pipe input through transform methods.
How deep it goes
Demonstrates instance access, static limitations, inheritance, event binding, and transform arguments without detailing runtime method internals.
Examples
Uses Product.printDetails, DiscountProduct inheritance, Angular toggle and removal handlers, and a tax pipe's transform method.
What you can do after
Builds class behavior, wires component actions to clicks, and implements custom pipe processing through transform.

Read how Pro Angular 16 explains method →

The Well-Grounded Rubyist, Fourth Edition

A method definition is Ruby source code that declares the name, parameters, and executable behavior of a method.

How it is used
Defines object behavior that accepts input, performs work, and returns a result.
How deep it goes
Explains parameters, calls, return values, syntax variations, name resolution, and visibility, while deferring class design.
Examples
Uses a Celsius-to-Fahrenheit converter, a greeting method, bareword calls, and an irb-style truth-value experiment.
What you can do after
Build it from scratch by defining parameterized Ruby methods and calling them with matching arguments.

Read how The Well-Grounded Rubyist, Fourth Edition explains method →

Get Programming with JavaScript Next: New features of ECMAScript 2015, 2016, and beyond

A function associated with an object or class that is invoked through that object or class.

How it is used
Defines shared behavior for generated prisoner objects and operations on class-based data stores.
How deep it goes
Shows object and class method syntax, then works through an unbound callback and an arrow-function fix.
Examples
Uses a generated prisoner's `snitch()` method, a data-store `fetch()` method, and an ajax callback that loses instance access.
What you can do after
Diagnose/debug with it when an ajax callback loses instance access, then preserve that access with an arrow-function wrapper.

Read how Get Programming with JavaScript Next: New features of ECMAScript 2015, 2016, and beyond explains method →

Learn AI-Assisted Python Programming, Second Edition

A method is a function associated with an object or type and invoked through that association.

How it is used
Uses methods to manipulate and inspect strings while reading, testing, and explaining Python code.
How deep it goes
Defines method syntax and demonstrates string operations, but stops short of implementation internals.
Examples
Demonstrates replace(), isupper(), isdigit(), and isalnum() through phone-number cleaning and interactive string tests.
What you can do after
Evaluate unfamiliar methods, call string methods, and request explanations with Copilot’s Explain feature.

Read how Learn AI-Assisted Python Programming, Second Edition explains method →

Software Design for Python Programmers

A method is a function defined as part of a class that operates on or describes the behavior of its objects.

How it is used
Assigns object behavior to classes while keeping operations near the instance variables they use.
How deep it goes
Defines methods, contrasts regular and static invocation, and maps requirements verbs to concrete operations without detailing implementation internals.
Examples
Uses shape.draw(), Catalogue operations, form verification, and attribute matching as method examples.
What you can do after
Build it from scratch by translating object-related requirements into methods that operate on class state.

Read how Software Design for Python Programmers explains method →

The Well-Grounded Python Developer: How the pros use Python and Flask

A method is a function associated with an object or class and invoked in the context of that object or class.

How it is used
Uses methods to attach behavior to objects and expose functionality through object-oriented APIs.
How deep it goes
Defines methods, demonstrates self and instance state, and applies them through a concrete Person example.
Examples
Demonstrates Person.full_name(), separate Person instances, and a loop that prints names.
What you can do after
Apply it by defining class methods, instantiating objects, and calling behavior through instances.

Read how The Well-Grounded Python Developer: How the pros use Python and Flask explains method →

Go in Action, Second Edition

A method is a function associated with a type that defines behavior operating on values of that type.

How it is used
Organizes domain behavior by attaching operations such as conversion, formatting, and recipe scaling directly to Go types.
How deep it goes
Explains receiver syntax and value-versus-pointer effects, then applies both choices in a composed recipe domain.
Examples
Uses ImperialWeight conversion, Recipe scaling, step insertion, measurement scaling, and a runnable pancake recipe.
What you can do after
Build it from scratch by defining receivers that either return derived values or mutate domain objects in place.

Read how Go in Action, Second Edition explains method →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.