-
Diff.between object and reference (4 messages)
- Posted by: nagireddy devireddy
- Posted on: December 24 2005 01:23 EST
I have doubt on object.what is the difference between object and reference?Threaded Messages (4)
- Ref = PO Box, Object = Home/Office by shreenee josh on December 25 2005 07:49 EST
- Ref = PO Box, Object = Home/Office by nagireddy devireddy on December 25 2005 13:06 EST
- Diff.between object and reference by Tusar Patel on December 26 2005 04:24 EST
- Diff.between object and reference by nagireddy devireddy on December 27 2005 00:34 EST
-
Ref = PO Box, Object = Home/Office[ Go to top ]
- Posted by: shreenee josh
- Posted on: December 25 2005 07:49 EST
- in response to nagireddy devireddy
whats the confusion ?
I dont find any common ground to compare Object and Reference.
Object is an entity in memory which represents an instance of a class.
While reference is the pointer address of the object.
So reference is like post box number while the object is the actual place.
shri -
Ref = PO Box, Object = Home/Office[ Go to top ]
- Posted by: nagireddy devireddy
- Posted on: December 25 2005 13:06 EST
- in response to shreenee josh
Where these reference and object stored in the memory?How it will interact?I am getting lot of confusion in this,sorry for asking again? -
Diff.between object and reference[ Go to top ]
- Posted by: Tusar Patel
- Posted on: December 26 2005 04:24 EST
- in response to nagireddy devireddy
I have doubt on object.what is the difference between object and reference?
There is a small line between object and reference.
As an example a remote control is an object but it is a reference for a television...
ok let us see in different perspective....when we cast a oblect into another class...for example we are changeing an int object into a double. here the reference of the object will change.Initially it was pointing integer now it shall point double...
I think by the this time u must have got the difference...if not again ask me
Thanx -
Diff.between object and reference[ Go to top ]
- Posted by: nagireddy devireddy
- Posted on: December 27 2005 00:34 EST
- in response to Tusar Patel
Thank you.Now,I got the point.