Every object has : state, behavior and identity -
explain

Answers were Sorted based on User's Feedback



Every object has : state, behavior and identity - explain..

Answer / benjamin jacob



Identity : Every instance of a class should be unique. e.g.
in memory, every object has its own memory address. This is
part of the unique id, other than which a user can have
member variables uniquely identifying the instance of the class.

State : Every object, at any given point of time would have
to have a set of attributes defining its State.

Behavior : Every object based on its state and optionally
identity will have particular behavior.

Is This Answer Correct ?    85 Yes 16 No

Every object has : state, behavior and identity - explain..

Answer / praveen kumar

Object is an instance of the class.And oject must have the
identity because of object can be specified in Class. And
has carries the behaviour of that perticular class

Is This Answer Correct ?    14 Yes 36 No

Post New Answer

More OOAD Interview Questions

What are all the operators that cannot be overloaded?

0 Answers  


Can you create an instance for an abstract class?

0 Answers  


Is class an Object? Is object a class?

3 Answers   InfoAxon Technologies, Protech,


What is the main use of message metaphor in object-oriented programming?

0 Answers  


What is an interface?

0 Answers  






What is a pure virtual function?

0 Answers  


What is the main difference between a class and an object?

0 Answers  


What are the methods required to create changes in subclasses?

0 Answers  


What do you meant by "SBI" of an object?

2 Answers   TCS,


What are the four phases of the Unified Process ?

8 Answers   Protech, Student,


What is single and multiple inheritance?

0 Answers  


What is static polymorphism?

0 Answers  


Categories