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

explain the difference between operator overloading and function overloading.

1003


Can we override a method by using same method name and arguments but different return types?

944


Explain the mechanism of composition?

1044


What is the difference between class inheritance and interface inheritance?

1099


What is Polymorphism, overloading, overriding and virtual?

1098


What is the practical implementation of inner classes?

992


What is bootstrap, extension and system class loader? Or can you explain primordial class loader?

1001


What is the difference between new and override?

1034


What is the benefit of Composition over Inheritance?

1004


What is an interface?

1031


Explain the term constructor

1052


What is single and multiple inheritance?

1019


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?

996


Explain OOPS.

1068


What is data encapsulation and what is its significance?

903