Re: Pointer vs Reference
- From: Roedy Green <see_website@xxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 30 Sep 2007 05:05:55 GMT
On Sun, 30 Sep 2007 02:03:04 +0200, Lasse Reichstein Nielsen
<lrn@xxxxxxxxxx> wrote, quoted or indirectly quoted someone who said :
In Java, Objects are not first class values. A variable cannot hold
an object. What they can hold is a reference to an object.
This the key to Java's simplicity. You never access an object other
than via a pointer.
In C++ there are four basic different ways to access an object.
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
.
- References:
- Re: Pointer vs Reference
- From: Lasse Reichstein Nielsen
- Re: Pointer vs Reference
- Prev by Date: Re: data transport
- Next by Date: Re: Pointer vs Reference
- Previous by thread: Re: Pointer vs Reference
- Next by thread: Re: Pointer vs Reference
- Index(es):
Relevant Pages
|