QamoosTech
Programming FundamentalsObject-oriented programmingBeginner

Object

PronunciationOB-jekt

Definition

A value that groups related data (properties) and sometimes behavior (methods) under one name.

Where you hear it

JavaScript and Python basics, JSON payloads, and object-oriented design.

Examples

  • Send the user as a JSON object with name and email.
  • Each Order object has a total property.
  • The order object holds the items, the customer and the total in one place.

Common mistake

Mixing up "object" (an instance with real data) and "class" (the blueprint).

Don't confuse with

An object is a concrete instance in memory containing actual data, whereas a class is just the abstract blueprint or template used to create that object.

Say it at work

  • In a meeting or chatLet's update this object to include the user's phone number before we pass it to the API.
  • In an email or ticketPlease ensure the incoming configuration object validates properly against the schema before saving it.