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 |
Difference: Activity Diagram and Sequence Diagram
Can encapsulation be called as a security device?
What is SRD(System Requirement document), FSD (Functional Specification Document), RSD (Requiremnet specific document)? If these are different document wat are there contents?
1 Answers College School Exams Tests, HP, Infosys,
Difference between encapsulation and data hiding ?
What is Abstract method and how different from Virtual Method?
State some of the advantages of object oriented programming?
What are manipulators?
Is @functionalinterface annotation mandatory to define a functional interface? What is the use of @functionalinterface annotation? Why do we need functional interfaces in java?
What are virtual functions, base class pointer, derived class pointer, biding references?
0 Answers HPCL, Hughes Systique Corporation,
What is the main advantage of using inheritance?
Can different parts of a partial class inherit from different interfaces?
Explain about realistic modeling?