Every object has : state, behavior and identity -
explain
Answers were Sorted based on User's Feedback
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 |
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 |
Explain about instance in object oriented programming?
Differentiate between an abstract class and an interface?
When will you use an interface and abstract class?
Difference: Sequence Diagrams, Collaboration Diagrams ?
What is composition? Explain the purpose of composition.
Comment: C++ "includes" behavior and java "imports"
What is Polymorphism?
7 Answers MindCracker, Protech, TCS,
What are the four phases of the Unified Process ?
What is the difference between a class and an object?
What is the default access modifier for a class,struct and an interface declared directly with a namespace?
What are the main features of oops?
Can you create an instance of an interface?