0
difference between object reference and using it
the difference between E.g Scanner input=new Scanner(System.in); input.method() or var AND BOOK book1; book1.method() or var i note that there is no Object creation in the second when using the book method... pls explain
1 Odpowiedź
+ 3
Imagine classes are containers.
Objects are boxes with some sort of tubing with the container as connection (a pointer, aka 1-way)
That tubing is the reference. The box is the object that you use.