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 is operator overloading?

1 Answers  


What is the difference between an interface and abstract class?

0 Answers  


What is early and late Binding?

0 Answers  


Explain about multiple inheritance?

0 Answers  


what are the main underlying concepts of object orientation?

2 Answers  


Can a class in java be inherited from more than one class?

0 Answers  


Does a class inherit the constructor of its super class?

0 Answers  


What are the major differences between late and dynamic binding?

0 Answers  


Differentiate between an abstract class and an interface?

0 Answers  


What are the good practices to use while designing for reuse?

1 Answers   Protech,


What is hybrid inheritance?

0 Answers  


How to achieve data abstraction?

0 Answers  


Categories