### A good answer might be:

An object is a section of main memory that contains both data and methods and that behaves like an individual entity.

# Objects

Often one says that:

- An object has identity (it acts as a single whole).
- An object has state (it has various properties, which might change).
- An object has behavior (it can do things and can have things done to it).

It is useful (but not quite accurate) to think of an object as a contiguous chunck of memory that contains data and machine code, as in the picture.

### QUESTION 9:

If a program constructed 1000 objects, would it be efficient to make 1000 copies of the machine code for each object?