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
Why abstraction is important?
Does java support multiple inheritance? if not, what is the solution?
Explain about inheritance hierarchies?
What's the order of call of constructors in inheritiance?
Can an interface have an inner class?
What is the default access modifier in a class?
Explain about polymorphism?
What are the properties that are defined in an object model?
What are different ways to create string object?
Explain what a method is?
What is bootstrap, extension and system class loader?
Why do we separate interface from implementation?
What do you mean by operator overloading?
State about java and its relation to object oriented programming?
What are the limitations of oops?