Sphere - class or object on pg 189
Wrox Beginning Java 2 SDK 1.4 (ISBN 0-7645-4365-2 2003)
Page 189 is titled Passing Objects to a Method:
Question#1 Is Sphere an object or is Sphere a class?
The syntax appears to show that the Ball object is of type Sphere, but the text refers to Sphere as an object: This has me confused.
Question#2 How does "obj." of obj.change(ball); fit into the picture?
I'm pretty sure I understand the rest, but these 2 issues have me puzzled.
Can anyone clarify these issues?
Thanks, Tracey
__________________
Tracey
|