Every object has : state, behavior and identity -
explain
Answer Posted / 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 |
Post New Answer View All Answers
What is serialization? How do we implement serialization actually?
Can we override a method by using same method name and arguments but different return types?
What do you mean by data hiding?
What is the difference between a class and a structure?
Explain the implementation phase with respect to oop?
What is difference between encapsulation and abstraction?
Why does java not support multiple inheritance?
How many methods are there in the externalizable interface?
Differentiate between data abstraction and encapsulation.
What is the need of multiple inheritance?
Explain what is an object?
Explain about object oriented programming?
What are the four important foundation concepts of OOP ?
What are the limitations of oops?
What is the benefit of using inheritance?