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

Can you use virtual, override or abstract keywords on an accessor of a static property?

0 Answers  


Does java support multiple inheritance? if not, what is the solution?

0 Answers  


What is an abstraction and why is it important?

0 Answers  


Explain the mechanism of composition?

0 Answers  


What is abstraction? How does it differ from encapsulation

0 Answers  






State some of the advantages of object oriented programming?

0 Answers  


What is Object Constraint Language (OCL)?

1 Answers   Protech,


What's the main difference between arraylist / hashmap and vector / hashtable?

0 Answers  


Explain the implementation phase with respect to oop?

0 Answers  


What is the benefit of using inheritance?

0 Answers  


Explain about inheritance hierarchies?

0 Answers  


What is the difference between aggregation and composition?

0 Answers  


Categories