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 |
What are a base class, subclass, and superclass?
If a method definition has been specified in class , its base class , and the interface which the class is implementing, which definition will be picked if we try to access it using interface reference and class object?
What is difference between encapsulation and abstraction?
Define exceptions?
Difference between encapsulation and data hiding ?
Difference between Composition and Aggregation
Write down how will you create a Binary tree?
Describe inheritance and non-inheritance of a derived class?
What is the use if instanceof keyword? And how do refer to a current instance of object?
What is the difference between class and interface?
What are the Design Patterns you know.
2 Answers InfoAxon Technologies, Protech,
What is static and dynamic Binding?