Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Why are outlet connections required in object-oriented programming?

1060


What are the major differences between late and dynamic binding?

1050


Differences between functional programming and object-oriented programming?

1106


What is the difference between a class and an object?

1518


What is diamond inheritance problem? How java 8 solves this problem?

1125


What is the difference between class inheritance and interface inheritance?

1155


Define modularity?

1131


State about java and its relation to object oriented programming?

1097


Which oops concept exposes only necessary information to the calling functions?

1053


How to make a class accessible as a web service?

1011


Which OOPS concept is used as a reuse mechanism?

1096


What are the limitations of oops?

1060


Can encapsulation be called as a security device?

1039


What do you mean by data hiding?

1184


What is the use if instanceof keyword? And how do refer to a current instance of object?

991