0

What is a reference variable?

17th Aug 2016, 7:25 AM
Rajosee Banerjee
Rajosee Banerjee - avatar
3 Answers
+ 2
Generally, it's a variable that references an object. Say you have a dog class. You create the object with Dog poodle = new Dog(); poodle is the reference variable that refers to the Dog object
17th Aug 2016, 7:30 AM
James
James - avatar
- 1
fcuk
10th Sep 2016, 12:31 PM
chitrank singh
chitrank singh - avatar
- 2
Smae variable can be declare twice with two different names
24th Aug 2016, 4:18 PM
Sanju