undefined

Open Source Your Knowledge, Become a Contributor

Technology knowledge has to be shared and made accessible for free. Join the movement.

Create Content

Classes - Part II

// {...}
public class PointExample2 {
public static void main(final String[] args) {
Point p1 = new Point(1, 2);
Point p2 = p1;
p2.reflect(); // p1 is also modified
System.out.println(p1);
}
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Open Source Your Knowledge: become a Contributor and help others learn. Create New Content