Computer Science, asked by naidunithish42008, 7 months ago

What are the two characteristics for defining an object

Answers

Answered by parikshit17
2

Answer:

Here is my unofficial list:

An object is made of tangible material (the pen is made of plastic, metal, ink).

An object holds together as a single whole (the whole pen, not a fog).

An object has properties (the color of the pen, where it is, how thick it writes...).

An object can do things and can have things done to it.

Answered by s14149cijra14366
1

Characteristics of Objects

The first item in this list is too restrictive. For example, you can think of your bank account as an object, but it is not made of material. (Although you and the bank may use paper and other material in keeping track of your account, your account exists independently of this material.) Although it is not material, your account has properties (a balance, an interest rate, an owner) and you can do things to it (deposit money, cancel it) and it can do things (charge for transactions, accumulate interest).

The last three items on the list seem clear enough. In fact, they have names:

An object has identity (each object is a distinct individual).

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).

Similar questions