Objects

In Object Oriented Programming (OOP) objects represent the real world. An object is a software package that contains a collection of related characteristics and behaviors, or properties and methods.

JavaScript objects can package multiple properties and methods together, or provide built-in, dynamic objects, properties, and methods.

Properties are characteristics that describe data or other objects. For example, a door is a real world object and can be modeled in a software application. An object property example is a door in one of two states—open or closed. A door may have a latch. A latch is a property of the door but because a latch can be locked or unlocked, it is also an object in its own right.

Methods or event handlers are functions associated with objects that can alter the state of the object. For example, a door can be opened or closed. Open and close are examples of methods, a sequence of events must occur to move the door from one state to another. For example, pressure is applied to the door in a direction to close it. In Dashboard Architect, a routine animates the closing of the modeled door.

Object methods and properties define the characteristics and behavior of an object.