Term

Object

Meaning

An object is a particular instance created from a class, with its own values for the properties the class defines. If Student is the class, then one student record with a specific name and roll number is an object. Objects bundle data and behaviour together, and the same class can produce many objects that do not disturb each other. A special constructor method runs when the object is created and prepares its starting state. Creating objects with the new keyword is the first step in object oriented PHP. See also: Class, Inheritance, and the guide PHP Functions and Object Oriented Programming Concepts.

All terms