0

What is references?? Is references the same variables??

Woow.. whats that reference?? I didnt understand that.. is objects references?? . So as that, all any variables is referece... however i didnt understand this subject "reference" .. please explain it who was understand that

23rd Sep 2018, 1:14 PM
arman
arman - avatar
7 Antworten
+ 3
Sure, in java pointer refers to an object: A a = new A(); When you pass object 'a' to the function, you can still access its members.
23rd Sep 2018, 8:04 PM
Aleksander Szczepura
Aleksander Szczepura - avatar
+ 3
References are types that doesn't contain any value, but they let you operate on variable they refer to.
23rd Sep 2018, 2:27 PM
Aleksander Szczepura
Aleksander Szczepura - avatar
+ 3
Just give me a few minutes
23rd Sep 2018, 7:37 PM
Aleksander Szczepura
Aleksander Szczepura - avatar
23rd Sep 2018, 7:44 PM
Aleksander Szczepura
Aleksander Szczepura - avatar
+ 1
yea.. that s right..thank you my friend.. I really love programming and Java language espisally
23rd Sep 2018, 8:37 PM
arman
arman - avatar
0
thx .. could u please give me an example code for refereces?
23rd Sep 2018, 7:34 PM
arman
arman - avatar
0
thx man.. but that is c++ code .. not java .. the references in c++ is defferent from java references
23rd Sep 2018, 7:50 PM
arman
arman - avatar