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 persistence?

979


Can an interface contain fields?

979


Explain about the analysis phase?

981


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

1294


Can you define OOP and principles of OOP?

972


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?

986


Why do we separate interface from implementation?

1007


What do you mean by polymorphism?

1041


What is the difference between class inheritance and interface inheritance?

1090


What is the default access modifier for a class,struct and an interface declared directly with a namespace?

966


Does a class inherit the constructor of its super class?

939


Define Destructor?

951


What are the Differentiate between abstraction and encapsulation.

903


What's the main difference between arraylist / hashmap and vector / hashtable?

1059


Why we use oops concepts? What is its advantage?

994