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 abstraction is important?

1010


Does java support multiple inheritance? if not, what is the solution?

915


Explain about inheritance hierarchies?

910


What's the order of call of constructors in inheritiance?

917


Can an interface have an inner class?

980


What is the default access modifier in a class?

962


Explain about polymorphism?

977


What are the properties that are defined in an object model?

925


What are different ways to create string object?

1042


Explain what a method is?

986


What is bootstrap, extension and system class loader?

940


Why do we separate interface from implementation?

955


What do you mean by operator overloading?

1037


State about java and its relation to object oriented programming?

982


What are the limitations of oops?

961