Ask your own question, for FREE!
Computer Science 17 Online
OpenStudy (myname):

In this example(in java): Circle circle1 = new Circle(2); IS circle1 the name of the object or is it just a reference variable to that particular object with 2 radius?

OpenStudy (anonymous):

circle1 is a reference to an instance of the Circle object with radius 2

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!