Computer Science, asked by gaurishiarora9795, 1 year ago

What defines the state of an object ? Select one: a. Using the value of the class properties b. Using the behavior c. Using the class identity d. Using the class id

Answers

Answered by aniketsingh0305
1

Answer:

using the behaviour

Explanation:

Answered by kamlesh678
0

Answer:

All the objects have a state, behavior and identity.

Explanation:

State of an object - The state or attributes are the built in characteristics or properties of an object. For example, a T.V has the size, colour, model etc.

Behaviour of the object - The behavior or operations of an object are its predefined functions. For example, a T.V. can show picture , change channels, tune for a channel etc. in object oriented programming terminology the behavior is implemented through methods.

Object identity - Each object is uniquely identifiable. For example, the fridge can not become the T.V.

#SPJ3

Similar questions