Variables must have a type and also must have a name. It needs a name so you can use it in the code. Variables hold primitives and references to objects. There is actually no such thing as an object variable. There’s only an object reference variable. An object reference variable holds bits that represent away to access an object.
No comments:
Post a Comment