liveBook · Manning

Object

Also called instance

An object is a distinct entity represented or manipulated within a computational system, typically as a value, data structure, resource, or instance of a type.

How 4 Manning books explain it

Get Programming: Learn to code with Python

A Python runtime entity that combines associated data with operations for interacting with that data.

How it is used
Organizes program values and behavior into named, usable entities, including objects created for a card game.
How deep it goes
Works through instance creation, independent attributes, dot notation, and how method calls supply the instance as self.
Examples
Uses two Circle instances with different radii, a Door class exercise, and objects in a card game.
What you can do after
Build it from scratch by defining a class, creating instances, and calling their methods in a program.

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

Python How-To

Instantiation is the process of creating an instance of a class.

How it is used
Uses instances as application data models and as a starting point for understanding object behavior and lifecycle.
How deep it goes
Explains instantiation through __new__ and __init__, then follows references and lifecycle behavior without attempting exhaustive object coverage.
Examples
Uses task instances, an attribute-based list search, and identity output from __new__ and __init__.
What you can do after
Apply object instantiation and initialization to custom data models, and inspect or search their instances.

Read how Python How-To explains object →

Modern C

A data object is a C entity that occupies storage for a value.

How it is used
Uses objects to explain how C programs store values and represent execution state.
How deep it goes
Explains definitions, initialization, identity, scope, addresses, and byte representation, while deferring detailed representation and access rules.
Examples
Uses a designated array initializer and shadowed `i` declarations to illustrate element values and object identity.
What you can do after
Evaluate and understand whether declarations refer to distinct objects and how initialization sets their values.

Read how Modern C explains object →

The Well-Grounded Rubyist, Fourth Edition

Instantiation is the process of creating an object as an instance of a class.

How it is used
Uses objects to model domain entities that store information and respond to requests for actions.
How deep it goes
Explains construction, method calls, references, and changing behavior, while leaving detailed singleton-class mechanics beyond these examples.
Examples
Demonstrates Ticket.new and ticket.event, then adds a wings method to one Magazine instance.
What you can do after
Build it from scratch by defining a Ruby class, creating an instance with new, and calling its methods.

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

Also covered in

What to know first

Related concepts

Questions about object

What is object?

An object is a distinct entity represented or manipulated within a computational system, typically as a value, data structure, resource, or instance of a type.

Which Manning books explain object?

Get Programming: Learn to code with Python, Python How-To, Modern C and The Well-Grounded Rubyist, Fourth Edition.

What should I know before learning object?

Manning books that teach object usually introduce function, method, object-oriented programming and Python first.

What kinds of object are there?

Kinds of object include array, function and first-class function.

What is object also called?

Object is also called instance.

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.