• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

state of an object

 
itisha jain
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do we mean when we say the state of an object?Can somebody explain with an example.
 
Sandeep Chhabra
Ranch Hand
Posts: 340
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
If I am not wrong, the current values of all the member variables of a class together are referred as the state of the object.
Correct me if i am wrong.
[ October 05, 2005: Message edited by: Sandeep Chhabra ]
 
Ritu Kapoor
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Itisha,

Remember:
1. Member variables of an object represents the state of an object. while
2. Methods of an object represents the behaviour.

Rgds,
-Ritu
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic