Everything is object
Objects are software sets for some related variables and methods.
Objects are the key to facing object programming technology. Software objects often imitate the objects around us in the world. In realities, it is, for example: items such as tables, bicycles, and cars. From these things, you can find that they have the same point, which is all consisting of states and behaviors. For example, bicycles have their own state [two wheels ...] and behaviors [brakes, acceleration ...]. Therefore, the software object is actually the shape of the real object. They have the same state and behavior, all of them use them. A software utilizes one or N variables [variable is a data item named by the user identifier. ] Maintain your own state. The software object uses its method [method is a function (subroutine) associated with the object. ] To perform its behavior. As mentioned above, you can use software objects to imitate the objects in reality. For example, an animation represents a dog in reality. Or use the procedure of the electronic car to represent the real car.
Since all states and behaviors. The status and behavior of the software object must be manifested by variables and methods. In the face of object programming, special objects are called instances. In addition to variables, software also has a wide variety of ways to call or change the status of the object.