object

A single thing created from a class or other type, holding its own values and able to run the type's methods.

In more detail

Variables often hold a reference to an object rather than the object itself, so two variables can point to the same one. Creating an object usually runs a constructor.

Examples

C#: new Product { Name = "Kettle" }
Java: new Greeter("world") creates an object; every class ultimately extends java.lang.Object, which supplies equals, hashCode and toString.
new Greeter("world")

Related terms

Taught in

References

Certification courses