Skip to content
Object, Class, Instance

Object, Class, Instance

1. Object

An Object represents an actual target to be implemented in Software. Each Object consists of State and Behavior. A person Object has states such as a name and an age, and can perform actions such as running or walking.

2. Class

A Class is a Blueprint for representing an Object. A single Object can be expressed with countless states and behaviors. However, not all of these states and behaviors are implemented in a program during the programming process. Only the states and behaviors needed for the purpose of the program are modeled and implemented. If a particular program simply manages only a person’s age information, the person Class will have the age as a variable and a Method that increases the age. However, if the program manages not only the age but also the person’s personal information, the person Class will have various variables such as gender and address in addition to the age, along with the corresponding Methods. A Class is the blueprint that represents an Object according to the purpose of the program in this way.

3. Instance

An Instance means an Object designed by a Class that has been materialized inside a program. Each Instance is materialized as it is allocated in memory through the program.

4. References